Class: Mediaflux::SchemaCreateRequest
- Defined in:
- app/models/mediaflux/schema_create_request.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Request
Class Method Summary collapse
-
.service ⇒ Object
Mediaflux service to use to define a new namespace We use “asset.doc.namespace.update” instead of “asset.doc.namespace.create” because update is more forgiving if the asseet.doc.namespace already exists.
Instance Method Summary collapse
-
#initialize(name:, description:, session_token:) ⇒ SchemaCreateRequest
constructor
A new instance of SchemaCreateRequest.
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(name:, description:, session_token:) ⇒ SchemaCreateRequest
Returns a new instance of SchemaCreateRequest.
13 14 15 16 17 |
# File 'app/models/mediaflux/schema_create_request.rb', line 13 def initialize(name:, description:, session_token:) super(session_token: session_token) @name = name @description = description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'app/models/mediaflux/schema_create_request.rb', line 4 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'app/models/mediaflux/schema_create_request.rb', line 4 def name @name end |
Class Method Details
.service ⇒ Object
Mediaflux service to use to define a new namespace We use “asset.doc.namespace.update” instead of “asset.doc.namespace.create” because update is more forgiving if the asseet.doc.namespace already exists
9 10 11 |
# File 'app/models/mediaflux/schema_create_request.rb', line 9 def self.service "asset.doc.namespace.update" end |