Class: BitFlyer::Models::Market
- Inherits:
-
Object
- Object
- BitFlyer::Models::Market
- Defined in:
- lib/bit_flyer/models/market.rb
Instance Attribute Summary collapse
-
#alias ⇒ Object
readonly
Returns the value of attribute alias.
-
#product_code ⇒ Object
readonly
Returns the value of attribute product_code.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Market
constructor
A new instance of Market.
Constructor Details
#initialize(attrs = {}) ⇒ Market
Returns a new instance of Market.
5 6 7 8 |
# File 'lib/bit_flyer/models/market.rb', line 5 def initialize(attrs = {}) @product_code = attrs['product_code'] @alias = attrs['alias'].present? ? attrs['alias'] : nil end |
Instance Attribute Details
#alias ⇒ Object (readonly)
Returns the value of attribute alias.
4 5 6 |
# File 'lib/bit_flyer/models/market.rb', line 4 def alias @alias end |
#product_code ⇒ Object (readonly)
Returns the value of attribute product_code.
4 5 6 |
# File 'lib/bit_flyer/models/market.rb', line 4 def product_code @product_code end |