class DuffelAPI::Resources::Refund

Attributes

amount[R]
arrival[R]
created_at[R]
currency[R]
destination[R]
id[R]
live_mode[R]
net_amount[R]
net_currency[R]
payment_intent_id[R]
status[R]
updated_at[R]

Public Class Methods

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

  @amount = object["amount"]
  @arrival = object["arrival"]
  @created_at = object["created_at"]
  @currency = object["currency"]
  @destination = object["destination"]
  @id = object["id"]
  @live_mode = object["live_mode"]
  @net_amount = object["net_amount"]
  @net_currency = object["net_currency"]
  @payment_intent_id = object["payment_intent_id"]
  @status = object["status"]
  @updated_at = object["updated_at"]

  super(object, response)
end