Class: Yardi::Model::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/yardi/model/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(remote_id:, type:, timestamp:, first_contact:, transaction_source:) ⇒ Event

timestamp is a string that does not include timezone, so we leave it to the client to parse correctly.



9
10
11
12
13
14
15
# File 'lib/yardi/model/event.rb', line 9

def initialize(remote_id:, type:, timestamp:, first_contact:, transaction_source:)
  @remote_id = remote_id
  @type = type
  @timestamp = timestamp
  @first_contact = first_contact
  @transaction_source = transaction_source
end

Instance Attribute Details

#first_contactObject (readonly)

Returns the value of attribute first_contact.



4
5
6
# File 'lib/yardi/model/event.rb', line 4

def first_contact
  @first_contact
end

#remote_idObject (readonly)

Returns the value of attribute remote_id.



4
5
6
# File 'lib/yardi/model/event.rb', line 4

def remote_id
  @remote_id
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



4
5
6
# File 'lib/yardi/model/event.rb', line 4

def timestamp
  @timestamp
end

#transaction_sourceObject (readonly)

Returns the value of attribute transaction_source.



4
5
6
# File 'lib/yardi/model/event.rb', line 4

def transaction_source
  @transaction_source
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/yardi/model/event.rb', line 4

def type
  @type
end