Class: Stripe::V2::Core::EventReason
- Inherits:
-
Object
- Object
- Stripe::V2::Core::EventReason
- Defined in:
- lib/stripe/resources/v2/core/event_notification.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.
18 19 20 21 |
# File 'lib/stripe/resources/v2/core/event_notification.rb', line 18 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.
16 17 18 |
# File 'lib/stripe/resources/v2/core/event_notification.rb', line 16 def request @request end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
16 17 18 |
# File 'lib/stripe/resources/v2/core/event_notification.rb', line 16 def type @type end |