Class: Mediaflux::ActorGrantRoleRequest

Inherits:
Request
  • Object
show all
Defined in:
app/models/mediaflux/actor_grant_role_request.rb

Instance Attribute Summary collapse

Attributes inherited from Request

#session_token

Class Method Summary collapse

Instance Method Summary collapse

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:, type:, name:, role:) ⇒ ActorGrantRoleRequest

Constructor

Parameters:

  • session_token (String)

    the API token for the authenticated session

  • type (String)

    the type of the name (role or user)

  • type (String)

    the name of the user or role that will be granted the new rights

  • type (String)

    the role to grant to the user or role



13
14
15
16
17
18
# File 'app/models/mediaflux/actor_grant_role_request.rb', line 13

def initialize(session_token:, type:, name:, role:)
  super(session_token: session_token)
  @type = type
  @name = name
  @role = role
end

Instance Attribute Details

#asset_nameObject (readonly)

Returns the value of attribute asset_name.



4
5
6
# File 'app/models/mediaflux/actor_grant_role_request.rb', line 4

def asset_name
  @asset_name
end

#collectionObject (readonly)

Returns the value of attribute collection.



4
5
6
# File 'app/models/mediaflux/actor_grant_role_request.rb', line 4

def collection
  @collection
end

#namespaceObject (readonly)

Returns the value of attribute namespace.



4
5
6
# File 'app/models/mediaflux/actor_grant_role_request.rb', line 4

def namespace
  @namespace
end

Class Method Details

.serviceString

Specifies the Mediaflux service to use when creating assets

Returns:

  • (String)


22
23
24
# File 'app/models/mediaflux/actor_grant_role_request.rb', line 22

def self.service
  "actor.grant"
end