Class: Workarea::Listrak::Models::Event
- Inherits:
-
Object
- Object
- Workarea::Listrak::Models::Event
- Defined in:
- app/services/workarea/listrak/models/event.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
Instance Method Summary collapse
-
#group_id ⇒ Integer
Identifier of the event group associated with the event.
-
#id ⇒ Integer
Identifier used to locate the event.
-
#initialize(hash) ⇒ Event
constructor
A new instance of Event.
-
#name ⇒ String
Name given to the event.
-
#status ⇒ String
Status of the event.
Constructor Details
#initialize(hash) ⇒ Event
Returns a new instance of Event.
7 8 9 |
# File 'app/services/workarea/listrak/models/event.rb', line 7 def initialize(hash) @hash = hash end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
5 6 7 |
# File 'app/services/workarea/listrak/models/event.rb', line 5 def hash @hash end |
Instance Method Details
#group_id ⇒ Integer
Identifier of the event group associated with the event.
31 32 33 |
# File 'app/services/workarea/listrak/models/event.rb', line 31 def group_id hash["eventGroupId"] end |
#id ⇒ Integer
Identifier used to locate the event.
15 16 17 |
# File 'app/services/workarea/listrak/models/event.rb', line 15 def id hash["eventId"] end |
#name ⇒ String
Name given to the event.
23 24 25 |
# File 'app/services/workarea/listrak/models/event.rb', line 23 def name hash["eventName"] end |
#status ⇒ String
Status of the event. Allowed values are Active and Blocked.
39 40 41 |
# File 'app/services/workarea/listrak/models/event.rb', line 39 def status hash["status"] end |