Class: Stripe::EventReason
- Inherits:
-
Object
- Object
- Stripe::EventReason
- Defined in:
- lib/stripe/thin_event.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(event_reason_payload = {}) ⇒ EventReason
constructor
A new instance of EventReason.
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
#request ⇒ Object (readonly)
Returns the value of attribute request.
14 15 16 |
# File 'lib/stripe/thin_event.rb', line 14 def request @request end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
14 15 16 |
# File 'lib/stripe/thin_event.rb', line 14 def type @type end |