Class: Stripe::GiftCards::TransactionService::CreateParams::CreatedBy

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/gift_cards/transaction_service.rb

Defined Under Namespace

Classes: Payment

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(payment: nil, type: nil) ⇒ CreatedBy

Returns a new instance of CreatedBy.



59
60
61
62
# File 'lib/stripe/services/gift_cards/transaction_service.rb', line 59

def initialize(payment: nil, type: nil)
  @payment = payment
  @type = type
end

Instance Attribute Details

#paymentObject

The details for the payment that created this object.



54
55
56
# File 'lib/stripe/services/gift_cards/transaction_service.rb', line 54

def payment
  @payment
end

#typeObject

The type of event that created this object.



57
58
59
# File 'lib/stripe/services/gift_cards/transaction_service.rb', line 57

def type
  @type
end