Class: Yardi::Model::Event
- Inherits:
-
Object
- Object
- Yardi::Model::Event
- Defined in:
- lib/yardi/model/event.rb
Instance Attribute Summary collapse
-
#first_contact ⇒ Object
readonly
Returns the value of attribute first_contact.
-
#remote_id ⇒ Object
readonly
Returns the value of attribute remote_id.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#transaction_source ⇒ Object
readonly
Returns the value of attribute transaction_source.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(remote_id:, type:, timestamp:, first_contact:, transaction_source:) ⇒ Event
constructor
timestamp is a string that does not include timezone, so we leave it to the client to parse correctly.
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 = @first_contact = first_contact @transaction_source = transaction_source end |
Instance Attribute Details
#first_contact ⇒ Object (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_id ⇒ Object (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 |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
4 5 6 |
# File 'lib/yardi/model/event.rb', line 4 def @timestamp end |
#transaction_source ⇒ Object (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 |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/yardi/model/event.rb', line 4 def type @type end |