class Rapa::Price

Attributes

source[R]

@return [Hash]

Public Class Methods

new(source) click to toggle source

@param source [Hash]

# File lib/rapa/price.rb, line 7
def initialize(source)
  @source = source
end

Public Instance Methods

amount() click to toggle source

@return [Integer]

# File lib/rapa/price.rb, line 12
def amount
  source["Amount"].to_i
end
currency_code() click to toggle source

@return [String]

# File lib/rapa/price.rb, line 17
def currency_code
  source["CurrencyCode"]
end
formatted_price() click to toggle source

@return [String]

# File lib/rapa/price.rb, line 22
def formatted_price
  source["FormattedPrice"]
end