Class: Workarea::Listrak::Models::Event

Inherits:
Object
  • Object
show all
Defined in:
app/services/workarea/listrak/models/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hashObject (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_idInteger

Identifier of the event group associated with the event.

Returns:

  • (Integer)


31
32
33
# File 'app/services/workarea/listrak/models/event.rb', line 31

def group_id
  hash["eventGroupId"]
end

#idInteger

Identifier used to locate the event.

Returns:

  • (Integer)


15
16
17
# File 'app/services/workarea/listrak/models/event.rb', line 15

def id
  hash["eventId"]
end

#nameString

Name given to the event.

Returns:

  • (String)


23
24
25
# File 'app/services/workarea/listrak/models/event.rb', line 23

def name
  hash["eventName"]
end

#statusString

Status of the event. Allowed values are Active and Blocked.

Returns:

  • (String)


39
40
41
# File 'app/services/workarea/listrak/models/event.rb', line 39

def status
  hash["status"]
end