Class: TreasureData::AccessControl

Inherits:
Model
  • Object
show all
Defined in:
lib/td/client/model.rb

Instance Attribute Summary collapse

Attributes inherited from Model

#client

Instance Method Summary collapse

Constructor Details

#initialize(client, subject, action, scope, grant_option) ⇒ AccessControl

Returns a new instance of AccessControl.

Parameters:

  • client (TreasureData::Client)
  • subject (String)
  • action (String)
  • scope (String)
  • grant_option (Array)


776
777
778
779
780
781
782
# File 'lib/td/client/model.rb', line 776

def initialize(client, subject, action, scope, grant_option)
  super(client)
  @subject = subject
  @action = action
  @scope = scope
  @grant_option = grant_option
end

Instance Attribute Details

#actionObject (readonly)



788
# File 'lib/td/client/model.rb', line 788

attr_reader :subject, :action, :scope, :grant_option

#grant_optionObject (readonly)

Returns the value of attribute grant_option.



788
# File 'lib/td/client/model.rb', line 788

attr_reader :subject, :action, :scope, :grant_option

#scopeObject (readonly)



788
# File 'lib/td/client/model.rb', line 788

attr_reader :subject, :action, :scope, :grant_option

#subjectObject (readonly)



788
789
790
# File 'lib/td/client/model.rb', line 788

def subject
  @subject
end