Class: Pickpoint::DeviceInput
- Inherits:
-
Struct
- Object
- Struct
- Pickpoint::DeviceInput
- Defined in:
- lib/pickpoint/devices.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
31 32 33 |
# File 'lib/pickpoint/devices.rb', line 31 def description @description end |
#metadata ⇒ Object
Returns the value of attribute metadata
31 32 33 |
# File 'lib/pickpoint/devices.rb', line 31 def @metadata end |
#name ⇒ Object
Returns the value of attribute name
31 32 33 |
# File 'lib/pickpoint/devices.rb', line 31 def name @name end |
#type ⇒ Object
Returns the value of attribute type
31 32 33 |
# File 'lib/pickpoint/devices.rb', line 31 def type @type end |
Instance Method Details
#to_h ⇒ Object
32 33 34 35 36 37 |
# File 'lib/pickpoint/devices.rb', line 32 def to_h out = { "name" => name, "type" => type } out["description"] = description unless description.nil? out["metadata"] = unless .nil? out end |