Class: Bitso::Transactions

Inherits:
Model
  • Object
show all
Defined in:
lib/bitso/transactions.rb

Overview

adding in methods to pull the last public trades list

Instance Attribute Summary collapse

Attributes inherited from Model

#error, #message

Class Method Summary collapse

Methods inherited from Model

#attributes, #attributes=, #initialize

Constructor Details

This class inherits a constructor from Bitso::Model

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



30
31
32
# File 'lib/bitso/transactions.rb', line 30

def amount
  @amount
end

#dateObject

Returns the value of attribute date.



30
31
32
# File 'lib/bitso/transactions.rb', line 30

def date
  @date
end

#priceObject

Returns the value of attribute price.



30
31
32
# File 'lib/bitso/transactions.rb', line 30

def price
  @price
end

#tidObject

Returns the value of attribute tid.



30
31
32
# File 'lib/bitso/transactions.rb', line 30

def tid
  @tid
end

Class Method Details

.from_apiObject



32
33
34
# File 'lib/bitso/transactions.rb', line 32

def self.from_api
  Bitso::Helper.parse_objects! Bitso::Net::get("/transactions").to_str, self
end