Class: ShakeTheCounter::Contact
- Inherits:
-
Object
- Object
- ShakeTheCounter::Contact
- Defined in:
- lib/shake_the_counter/contact.rb
Overview
Sets up a contact object
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#raw_data ⇒ Object
Returns the value of attribute raw_data.
Instance Method Summary collapse
-
#initialize(args = {}, performance: nil) ⇒ Contact
constructor
A new instance of Contact.
Constructor Details
#initialize(args = {}, performance: nil) ⇒ Contact
Returns a new instance of Contact.
9 10 11 12 |
# File 'lib/shake_the_counter/contact.rb', line 9 def initialize(args={}, performance: nil) self.key = args["ContactKey"] self.raw_data = args end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
6 7 8 |
# File 'lib/shake_the_counter/contact.rb', line 6 def key @key end |
#raw_data ⇒ Object
Returns the value of attribute raw_data.
7 8 9 |
# File 'lib/shake_the_counter/contact.rb', line 7 def raw_data @raw_data end |