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.



27
28
29
# File 'lib/bitstamp/transactions.rb', line 27

def amount
  @amount
end

#dateObject

Returns the value of attribute date.



27
28
29
# File 'lib/bitstamp/transactions.rb', line 27

def date
  @date
end

#priceObject

Returns the value of attribute price.



27
28
29
# File 'lib/bitstamp/transactions.rb', line 27

def price
  @price
end

#tidObject

Returns the value of attribute tid.



27
28
29
# File 'lib/bitstamp/transactions.rb', line 27

def tid
  @tid
end

Class Method Details

.from_apiObject



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

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