Class: BitFlyer::Models::Market

Inherits:
Object
  • Object
show all
Defined in:
lib/bit_flyer/models/market.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#aliasObject (readonly)

Returns the value of attribute alias.



4
5
6
# File 'lib/bit_flyer/models/market.rb', line 4

def alias
  @alias
end

#product_codeObject (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