Class: Allorails::Price

Inherits:
Base show all
Defined in:
lib/allorails/response/model.rb

Overview

Class providing object mapping of a price item

Instance Attribute Summary

Attributes inherited from Response::ApiMappingResponse

#xml

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods inherited from Response::ApiMappingResponse

#_verify, attribute_reader, #initialize, node_reader

Methods inherited from Response::ApiResponse

#_verify, #initialize

Constructor Details

This class inherits a constructor from Allorails::Base

Instance Method Details

#amountObject

Provides the amount

@return (float) amount


102
# File 'lib/allorails/response/model.rb', line 102

attribute_reader :amount, Float

#currencyObject

Provides the currency

@return (string) currency (three characters)


98
# File 'lib/allorails/response/model.rb', line 98

attribute_reader :currency

#exchangeObject

Provides the day’s exchange rate

@return (float) exchange rate


106
# File 'lib/allorails/response/model.rb', line 106

attribute_reader :exchange, Float

#reference_amountObject

Provides the amount in the reference currency

@return (float) reference amount


114
# File 'lib/allorails/response/model.rb', line 114

attribute_reader :reference_amount, Float

#reference_currencyObject

Provides the reference currency

@return (string) reference currency


110
# File 'lib/allorails/response/model.rb', line 110

attribute_reader :reference_currency