Class: Mediaflux::SchemaFieldsCreateRequest
- Defined in:
- app/models/mediaflux/schema_fields_create_request.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#document ⇒ Object
readonly
Returns the value of attribute document.
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#schema_name ⇒ Object
readonly
Returns the value of attribute schema_name.
Attributes inherited from Request
Class Method Summary collapse
-
.service ⇒ String
Mediaflux service to use to define fields in a schema namespace.
Instance Method Summary collapse
-
#initialize(schema_name:, document:, description:, fields:, session_token:) ⇒ SchemaFieldsCreateRequest
constructor
A new instance of SchemaFieldsCreateRequest.
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
#description ⇒ Object (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 |
#document ⇒ Object (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 |
#fields ⇒ Object (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_name ⇒ Object (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
.service ⇒ String
Mediaflux service to use to define fields in a schema namespace
8 9 10 |
# File 'app/models/mediaflux/schema_fields_create_request.rb', line 8 def self.service "asset.doc.type.update" end |