Class: Mediaflux::SchemaFieldsCreateRequest

Inherits:
Request
  • Object
show all
Defined in:
app/models/mediaflux/schema_fields_create_request.rb

Instance Attribute Summary collapse

Attributes inherited from Request

#session_token

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Request

build_post_request, default_xml_namespace, default_xml_namespace_uri, #error?, find_or_create_http_client, format_date_for_mediaflux, request_path, #resolve, #resolved?, #response_body, #response_error, #response_xml, uri, #xml_payload, #xtoshell_xml

Constructor Details

#initialize(schema_name:, document:, description:, fields:, session_token:) ⇒ SchemaFieldsCreateRequest

Returns a new instance of SchemaFieldsCreateRequest.



12
13
14
15
16
17
18
# File 'app/models/mediaflux/schema_fields_create_request.rb', line 12

def initialize(schema_name:, document:, description:, fields:, session_token:)
  super(session_token: session_token)
  @schema_name = schema_name
  @document = document
  @description = description
  @fields = fields
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



4
5
6
# File 'app/models/mediaflux/schema_fields_create_request.rb', line 4

def description
  @description
end

#documentObject (readonly)

Returns the value of attribute document.



4
5
6
# File 'app/models/mediaflux/schema_fields_create_request.rb', line 4

def document
  @document
end

#fieldsObject (readonly)

Returns the value of attribute fields.



4
5
6
# File 'app/models/mediaflux/schema_fields_create_request.rb', line 4

def fields
  @fields
end

#schema_nameObject (readonly)

Returns the value of attribute schema_name.



4
5
6
# File 'app/models/mediaflux/schema_fields_create_request.rb', line 4

def schema_name
  @schema_name
end

Class Method Details

.serviceString

Mediaflux service to use to define fields in a schema namespace

Returns:

  • (String)


8
9
10
# File 'app/models/mediaflux/schema_fields_create_request.rb', line 8

def self.service
  "asset.doc.type.update"
end