Class: Mediaflux::ProjectCreateRequest
- Inherits:
-
AssetCreateRequest
- Object
- Request
- AssetCreateRequest
- Mediaflux::ProjectCreateRequest
- Defined in:
- app/models/mediaflux/project_create_request.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
-
#project_metadata ⇒ Object
readonly
Returns the value of attribute project_metadata.
Attributes inherited from AssetCreateRequest
Attributes inherited from Request
Instance Method Summary collapse
-
#initialize(session_token:, namespace:, project:, xml_namespace: nil, xml_namespace_uri: nil, pid: nil) ⇒ ProjectCreateRequest
constructor
Constructor.
Methods inherited from AssetCreateRequest
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, service, uri, #xml_payload, #xtoshell_xml
Constructor Details
#initialize(session_token:, namespace:, project:, xml_namespace: nil, xml_namespace_uri: nil, pid: nil) ⇒ ProjectCreateRequest
Constructor
13 14 15 16 17 |
# File 'app/models/mediaflux/project_create_request.rb', line 13 def initialize(session_token:, namespace:, project:, xml_namespace: nil, xml_namespace_uri: nil, pid: nil) super(session_token:, namespace:, name: project.project_directory_short, xml_namespace:, xml_namespace_uri:, pid:) @project = project @project_metadata = project. end |
Instance Attribute Details
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
4 5 6 |
# File 'app/models/mediaflux/project_create_request.rb', line 4 def collection @collection end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
4 5 6 |
# File 'app/models/mediaflux/project_create_request.rb', line 4 def namespace @namespace end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
4 5 6 |
# File 'app/models/mediaflux/project_create_request.rb', line 4 def project @project end |
#project_metadata ⇒ Object (readonly)
Returns the value of attribute project_metadata.
4 5 6 |
# File 'app/models/mediaflux/project_create_request.rb', line 4 def @project_metadata end |