Class: Bitstamp::Transactions

Inherits:
Model
  • Object
show all
Defined in:
lib/bitstamp/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 Bitstamp::Model

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



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

def amount
  @amount
end

#dateObject

Returns the value of attribute date.



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

def date
  @date
end

#priceObject

Returns the value of attribute price.



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

def price
  @price
end

#tidObject

Returns the value of attribute tid.



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

def tid
  @tid
end

Class Method Details

.from_apiObject



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

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