Class: GeoStock::ResponseArray
- Inherits:
-
Array
- Object
- Array
- GeoStock::ResponseArray
- Defined in:
- lib/geostock/util.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Class Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
25 26 27 |
# File 'lib/geostock/util.rb', line 25 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
25 26 27 |
# File 'lib/geostock/util.rb', line 25 def @message end |
Class Method Details
.from(value, opts) ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/geostock/util.rb', line 26 def self.from(value, opts) a = new a.push *value a.code = opts[:code] a. = opts[:message] a end |