Class: OandaAPI::Resource::Price

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

Overview

Price value object. See the Oanda Developer Guide for information about Prices.

Instance Attribute Summary collapse

Attributes inherited from OandaAPI::ResourceBase

#location

Method Summary

Methods inherited from OandaAPI::ResourceBase

#initialize, #to_json

Constructor Details

This class inherits a constructor from OandaAPI::ResourceBase

Instance Attribute Details

#askObject

Returns the value of attribute ask


6
7
8
# File 'lib/oanda_api/resource/price.rb', line 6

def ask
  @ask
end

#bidObject

Returns the value of attribute bid


6
7
8
# File 'lib/oanda_api/resource/price.rb', line 6

def bid
  @bid
end

#instrumentObject

Returns the value of attribute instrument


6
7
8
# File 'lib/oanda_api/resource/price.rb', line 6

def instrument
  @instrument
end

#timeObject

Returns the value of attribute time


6
7
8
# File 'lib/oanda_api/resource/price.rb', line 6

def time
  @time
end