Class: Stripe::ThinEvent
- Inherits:
-
Object
- Object
- Stripe::ThinEvent
- Defined in:
- lib/stripe/thin_event.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#created ⇒ Object
readonly
Returns the value of attribute created.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#livemode ⇒ Object
readonly
Returns the value of attribute livemode.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#related_object ⇒ Object
readonly
Returns the value of attribute related_object.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(event_payload = {}) ⇒ ThinEvent
constructor
A new instance of ThinEvent.
Constructor Details
#initialize(event_payload = {}) ⇒ ThinEvent
Returns a new instance of ThinEvent.
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/stripe/thin_event.rb', line 25 def initialize(event_payload = {}) @id = event_payload[:id] @type = event_payload[:type] @created = event_payload[:created] @context = event_payload[:context] @livemode = event_payload[:livemode] @related_object = event_payload[:related_object] return if event_payload[:reason].nil? @reason = EventReason.new(event_payload[:reason]) end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
23 24 25 |
# File 'lib/stripe/thin_event.rb', line 23 def context @context end |
#created ⇒ Object (readonly)
Returns the value of attribute created.
23 24 25 |
# File 'lib/stripe/thin_event.rb', line 23 def created @created end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
23 24 25 |
# File 'lib/stripe/thin_event.rb', line 23 def id @id end |
#livemode ⇒ Object (readonly)
Returns the value of attribute livemode.
23 24 25 |
# File 'lib/stripe/thin_event.rb', line 23 def livemode @livemode end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
23 24 25 |
# File 'lib/stripe/thin_event.rb', line 23 def reason @reason end |
#related_object ⇒ Object (readonly)
Returns the value of attribute related_object.
23 24 25 |
# File 'lib/stripe/thin_event.rb', line 23 def @related_object end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
23 24 25 |
# File 'lib/stripe/thin_event.rb', line 23 def type @type end |