class DuffelAPI::Resources::OfferPassenger

Attributes

age[R]

@return [String, nil]

family_name[R]

@return [String, nil]

given_name[R]

@return [String, nil]

id[R]

@return [String]

loyalty_programme_accounts[R]

@return [Array<Hash>]

type[R]

@return [String, nil]

Public Class Methods

new(object, response = nil) click to toggle source
Calls superclass method DuffelAPI::Resources::BaseResource::new
# File lib/duffel_api/resources/offer_passenger.rb, line 25
def initialize(object, response = nil)
  @object = object

  @type = object["type"]
  @loyalty_programme_accounts = object["loyalty_programme_accounts"]
  @id = object["id"]
  @given_name = object["given_name"]
  @family_name = object["family_name"]
  @age = object["age"]

  super(object, response)
end