Class: OandaAPI::Resource::Transaction::TradeReduced

Inherits:
OandaAPI::ResourceBase show all
Defined in:
lib/oanda_api/resource/transaction.rb

Overview

Constant Summary

Constants inherited from OandaAPI::ResourceBase

OandaAPI::ResourceBase::NOT_PLURALIZED

Instance Attribute Summary collapse

Attributes inherited from OandaAPI::ResourceBase

#location

Method Summary

Methods inherited from OandaAPI::ResourceBase

class_from_symbol, #initialize, labs_resource?, pluralize, #to_json

Constructor Details

This class inherits a constructor from OandaAPI::ResourceBase

Instance Attribute Details

#idObject

Returns the value of attribute id.



62
63
64
# File 'lib/oanda_api/resource/transaction.rb', line 62

def id
  @id
end

#interestObject

Returns the value of attribute interest.



62
63
64
# File 'lib/oanda_api/resource/transaction.rb', line 62

def interest
  @interest
end

#plObject

Returns the value of attribute pl.



62
63
64
# File 'lib/oanda_api/resource/transaction.rb', line 62

def pl
  @pl
end

#unitsObject

Returns the value of attribute units.



62
63
64
# File 'lib/oanda_api/resource/transaction.rb', line 62

def units
  @units
end