Class: Mediaflux::ProjectUserAddRequest
- Defined in:
- app/models/mediaflux/project_user_add_request.rb
Instance Attribute Summary collapse
-
#project ⇒ Object
readonly
Returns the value of attribute project.
-
#project_metadata ⇒ Object
readonly
Returns the value of attribute project_metadata.
Attributes inherited from Request
Class Method Summary collapse
-
.service ⇒ String
Specifies the Mediaflux service to use when updating assets.
Instance Method Summary collapse
-
#debug_output ⇒ Object
Returns the entire response returned by the project create service.
-
#initialize(session_token:, project:) ⇒ ProjectUserAddRequest
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:, project:) ⇒ ProjectUserAddRequest
Constructor
9 10 11 12 13 14 15 16 17 |
# File 'app/models/mediaflux/project_user_add_request.rb', line 9 def initialize(session_token:, project:) super(session_token: session_token) @project = project @id = @project.mediaflux_id @xml_namespace = self.class.default_xml_namespace @xml_namespace_uri = self.class.default_xml_namespace_uri @all_data_users = @project..ro_users + @project..rw_users end |
Instance Attribute Details
#project ⇒ Object (readonly)
Returns the value of attribute project.
4 5 6 |
# File 'app/models/mediaflux/project_user_add_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_user_add_request.rb', line 4 def @project_metadata end |
Class Method Details
.service ⇒ String
Specifies the Mediaflux service to use when updating assets
21 22 23 |
# File 'app/models/mediaflux/project_user_add_request.rb', line 21 def self.service "tigerdata.project.user.add" end |
Instance Method Details
#debug_output ⇒ Object
Returns the entire response returned by the project create service. This includes debug information that is useful to troubleshoot issues if the request fails.
28 29 30 |
# File 'app/models/mediaflux/project_user_add_request.rb', line 28 def debug_output response_xml.xpath("response/reply/result/result").to_s end |