class Rome2rio::IndicativePrice

Attributes

currency[R]
isFreeTransfer[R]
nativeCurrency[R]
nativePrice[R]
price[R]

Public Class Methods

new(json) click to toggle source
# File lib/rome2rio/response/indicative_price.rb, line 4
def initialize(json)
  @price = json["price"] if json["price"]
  @currency = json["currency"] if json["currency"]
  @nativePrice = json["nativePrice"] if json["nativePrice"]
  @nativeCurrency = json["nativeCurrency"] if json["nativeCurrency"]
  @isFreeTransfer = json["isFreeTransfer"] == 1 if json["isFreeTransfer"]
end