diff --git a/lib/rex/order.rb b/lib/rex/order.rb new file mode 100644 index 0000000..acf1092 --- /dev/null +++ b/lib/rex/order.rb @@ -0,0 +1,29 @@ +module Rex + class Order + attr_accessor( + :next_order, + :remaining_amount + ) + + attr_reader( + :id, + :is_buy, + :price, + :user_id, + :amount + ) + + def initialize(attrs = {}) + @id = attrs[:id] + + @user_id = attrs[:user_id] + @price = attrs[:price] + @is_buy = attrs[:is_buy] + @amount = attrs[:amount] + @remaining_amount = attrs[:amount] + + @next_order = nil + end + + end +end