Class: TableauRestApi::Group

Inherits:
Base
  • Object
show all
Defined in:
lib/tableau_rest_api/resources/group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_array, #to_h, #to_hash

Constructor Details

#initialize(group) ⇒ Group

Returns a new instance of Group.



5
6
7
8
# File 'lib/tableau_rest_api/resources/group.rb', line 5

def initialize(group)
  @id = group.id
  @name = group.name
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/tableau_rest_api/resources/group.rb', line 3

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/tableau_rest_api/resources/group.rb', line 3

def name
  @name
end