Class: OneLogin::Api::Models::EventType

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ EventType

Returns a new instance of EventType.


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

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

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.


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

def description
  @description
end

#idObject

Returns the value of attribute id.


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

def id
  @id
end

#nameObject

Returns the value of attribute name.


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

def name
  @name
end