class BandCampBX::Entities::Order
Public Class Methods
map_type()
click to toggle source
# File lib/bandcampbx/entities/order.rb, line 8 def self.map_type ->(val) do case val.to_s when '0' :buy when '1' :sell else raise InvalidTypeError end end end
mappings()
click to toggle source
# File lib/bandcampbx/entities/order.rb, line 21 def self.mappings { id: map_int, datetime: map_time, type: map_type, price: map_decimal, amount: map_decimal } end