class Bitex::Sell

A transaction in which you sold some quantity of specie.

Attributes

ask_id[RW]

@!attribute ask_id

@return [Integer] Unique ID for the Ask that resulted in this Sell

Public Class Methods

from_json(json) click to toggle source

@visibility private

Calls superclass method Bitex::Match::from_json
# File lib/bitex/sell.rb, line 30
def self.from_json(json)
  super(json).tap do |thing|
    thing.ask_id = json[8].to_i
  end
end