Class: Btce::Types::Stats

Inherits:
Object
  • Object
show all
Defined in:
lib/btce/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Stats

from Response.return



76
77
78
79
80
# File 'lib/btce/types.rb', line 76

def initialize(data) # from Response.return
  @transaction_count = data['transaction_count']
  @open_orders = data['open_orders']
  @server_time = data['server_time'] # UNIX timestamp
end

Instance Attribute Details

#open_ordersObject (readonly)

Returns the value of attribute open_orders.



74
75
76
# File 'lib/btce/types.rb', line 74

def open_orders
  @open_orders
end

#server_timeObject (readonly)

Returns the value of attribute server_time.



74
75
76
# File 'lib/btce/types.rb', line 74

def server_time
  @server_time
end

#transaction_countObject (readonly)

Returns the value of attribute transaction_count.



74
75
76
# File 'lib/btce/types.rb', line 74

def transaction_count
  @transaction_count
end