Class: OneLogin::Api::Models::Group

Inherits:
Object
  • Object
show all
Defined in:
lib/onelogin/api/models/group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Group

Returns a new instance of Group.


9
10
11
12
13
# File 'lib/onelogin/api/models/group.rb', line 9

def initialize(data)
  @id = data['id']
  @name = data['name'].to_s
  @reference = data['reference'].to_s
end

Instance Attribute Details

#idObject

Returns the value of attribute id.


7
8
9
# File 'lib/onelogin/api/models/group.rb', line 7

def id
  @id
end

#nameObject

Returns the value of attribute name.


7
8
9
# File 'lib/onelogin/api/models/group.rb', line 7

def name
  @name
end

#referenceObject

Returns the value of attribute reference.


7
8
9
# File 'lib/onelogin/api/models/group.rb', line 7

def reference
  @reference
end