Class: Square::Connect::Device

Inherits:
Object
  • Object
show all
Defined in:
lib/square/connect/device.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#identifierObject

Returns the value of attribute identifier.



4
5
6
# File 'lib/square/connect/device.rb', line 4

def identifier
  @identifier
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/square/connect/device.rb', line 4

def name
  @name
end