Class: Mediaflux::CollectionAssetCreateRootRequest
- Defined in:
- app/models/mediaflux/collection_asset_create_root_request.rb
Instance Attribute Summary collapse
-
#asset_name ⇒ Object
readonly
Returns the value of attribute asset_name.
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
Attributes inherited from Request
Class Method Summary collapse
-
.service ⇒ String
Specifies the Mediaflux service to use when creating the root collection asset.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(session_token:, namespace:, name:) ⇒ CollectionAssetCreateRootRequest
constructor
Constructor.
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(session_token:, namespace:, name:) ⇒ CollectionAssetCreateRootRequest
Constructor
9 10 11 12 13 |
# File 'app/models/mediaflux/collection_asset_create_root_request.rb', line 9 def initialize(session_token:, namespace:, name:) super(session_token: session_token) @namespace = namespace @asset_name = name end |
Instance Attribute Details
#asset_name ⇒ Object (readonly)
Returns the value of attribute asset_name.
4 5 6 |
# File 'app/models/mediaflux/collection_asset_create_root_request.rb', line 4 def asset_name @asset_name end |
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
4 5 6 |
# File 'app/models/mediaflux/collection_asset_create_root_request.rb', line 4 def collection @collection end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
4 5 6 |
# File 'app/models/mediaflux/collection_asset_create_root_request.rb', line 4 def namespace @namespace end |
Class Method Details
.service ⇒ String
Specifies the Mediaflux service to use when creating the root collection asset
17 18 19 |
# File 'app/models/mediaflux/collection_asset_create_root_request.rb', line 17 def self.service "asset.create" end |
Instance Method Details
#id ⇒ Object
21 22 23 24 |
# File 'app/models/mediaflux/collection_asset_create_root_request.rb', line 21 def id @id ||= response_xml.xpath("/response/reply/result/id").text @id end |