Class: Square::Connect::Device
- Inherits:
-
Object
- Object
- Square::Connect::Device
- Defined in:
- lib/square/connect/device.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Device
constructor
A new instance of Device.
Constructor Details
#initialize(attributes = {}) ⇒ Device
Returns a new instance of Device.
6 7 8 9 |
# File 'lib/square/connect/device.rb', line 6 def initialize(attributes = {}) self.identifier = attributes[:id] self.name = attributes[:name] end |
Instance Attribute Details
#identifier ⇒ Object
Returns the value of attribute identifier.
4 5 6 |
# File 'lib/square/connect/device.rb', line 4 def identifier @identifier end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/square/connect/device.rb', line 4 def name @name end |