Class: Stripe::EventReason

Inherits:
Object
  • Object
show all
Defined in:
lib/stripe/thin_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_reason_payload = {}) ⇒ EventReason

Returns a new instance of EventReason.



16
17
18
19
# File 'lib/stripe/thin_event.rb', line 16

def initialize(event_reason_payload = {})
  @type = event_reason_payload[:type]
  @request = EventReasonRequest.new(event_reason_payload[:request])
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



14
15
16
# File 'lib/stripe/thin_event.rb', line 14

def request
  @request
end

#typeObject (readonly)

Returns the value of attribute type.



14
15
16
# File 'lib/stripe/thin_event.rb', line 14

def type
  @type
end