Class: Btce::Types::Stats
- Inherits:
-
Object
- Object
- Btce::Types::Stats
- Defined in:
- lib/btce/types.rb
Instance Attribute Summary collapse
-
#open_orders ⇒ Object
readonly
Returns the value of attribute open_orders.
-
#server_time ⇒ Object
readonly
Returns the value of attribute server_time.
-
#transaction_count ⇒ Object
readonly
Returns the value of attribute transaction_count.
Instance Method Summary collapse
-
#initialize(data) ⇒ Stats
constructor
from Response.return.
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_orders ⇒ Object (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_time ⇒ Object (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_count ⇒ Object (readonly)
Returns the value of attribute transaction_count.
74 75 76 |
# File 'lib/btce/types.rb', line 74 def transaction_count @transaction_count end |