Class: Viglink::Rate
- Inherits:
-
Struct
- Object
- Struct
- Viglink::Rate
- Defined in:
- lib/viglink/rate.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#max ⇒ Object
Returns the value of attribute max.
-
#min ⇒ Object
Returns the value of attribute min.
-
#type ⇒ Object
Returns the value of attribute type.
-
#type_name ⇒ Object
Returns the value of attribute type_name.
Class Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
4 5 6 |
# File 'lib/viglink/rate.rb', line 4 def description @description end |
#max ⇒ Object
Returns the value of attribute max
4 5 6 |
# File 'lib/viglink/rate.rb', line 4 def max @max end |
#min ⇒ Object
Returns the value of attribute min
4 5 6 |
# File 'lib/viglink/rate.rb', line 4 def min @min end |
#type ⇒ Object
Returns the value of attribute type
4 5 6 |
# File 'lib/viglink/rate.rb', line 4 def type @type end |
#type_name ⇒ Object
Returns the value of attribute type_name
4 5 6 |
# File 'lib/viglink/rate.rb', line 4 def type_name @type_name end |
Class Method Details
.from_json(rate) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/viglink/rate.rb', line 6 def self.from_json(rate) new min: rate['min'], max: rate['max'], type: rate['type'], type_name: rate['typeName'], description: rate['description'] end |