Class: BudaApi::Models::Trades
- Defined in:
- lib/buda_api/models.rb
Overview
Trades collection model
Instance Attribute Summary collapse
-
#last_timestamp ⇒ Object
readonly
Returns the value of attribute last_timestamp.
-
#trades ⇒ Object
readonly
Returns the value of attribute trades.
Instance Method Summary collapse
- #count ⇒ Object
- #each(&block) ⇒ Object
-
#initialize(data) ⇒ Trades
constructor
A new instance of Trades.
Methods inherited from BaseModel
Constructor Details
Instance Attribute Details
#last_timestamp ⇒ Object (readonly)
Returns the value of attribute last_timestamp.
172 173 174 |
# File 'lib/buda_api/models.rb', line 172 def @last_timestamp end |
#trades ⇒ Object (readonly)
Returns the value of attribute trades.
172 173 174 |
# File 'lib/buda_api/models.rb', line 172 def trades @trades end |
Instance Method Details
#count ⇒ Object
174 175 176 |
# File 'lib/buda_api/models.rb', line 174 def count @trades.length end |
#each(&block) ⇒ Object
178 179 180 |
# File 'lib/buda_api/models.rb', line 178 def each(&block) @trades.each(&block) end |