Class: ShakeTheCounter::Contact

Inherits:
Object
  • Object
show all
Defined in:
lib/shake_the_counter/contact.rb

Overview

Sets up a contact object

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject

Returns the value of attribute key.



6
7
8
# File 'lib/shake_the_counter/contact.rb', line 6

def key
  @key
end

#raw_dataObject

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