Class: ManageIQ::API::Common::RBAC::QuerySharedResource

Inherits:
Object
  • Object
show all
Includes:
Utilities
Defined in:
lib/manageiq/api/common/rbac/query_shared_resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utilities

#parse_ids_from_name, #unique_name, #validate_groups

Constructor Details

#initialize(options) ⇒ QuerySharedResource

Returns a new instance of QuerySharedResource.



11
12
13
14
15
16
17
# File 'lib/manageiq/api/common/rbac/query_shared_resource.rb', line 11

def initialize(options)
  @app_name = options[:app_name]
  @resource_id = options[:resource_id]
  @resource_name = options[:resource_name]
  @share_info = []
  @roles = RBAC::Roles.new("#{@app_name}-#{@resource_name}-#{@resource_id}", 'account')
end

Instance Attribute Details

#share_infoObject

Returns the value of attribute share_info.



9
10
11
# File 'lib/manageiq/api/common/rbac/query_shared_resource.rb', line 9

def share_info
  @share_info
end

Instance Method Details

#processObject



19
20
21
22
# File 'lib/manageiq/api/common/rbac/query_shared_resource.rb', line 19

def process
  build_share_info
  self
end