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.
-
#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.
7 8 9 10 11 12 13 14 15 |
# File 'lib/stripe/thin_event.rb', line 7 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] @reason = event_payload[:reason] end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
5 6 7 |
# File 'lib/stripe/thin_event.rb', line 5 def context @context end |
#created ⇒ Object (readonly)
Returns the value of attribute created.
5 6 7 |
# File 'lib/stripe/thin_event.rb', line 5 def created @created end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/stripe/thin_event.rb', line 5 def id @id end |
#related_object ⇒ Object (readonly)
Returns the value of attribute related_object.
5 6 7 |
# File 'lib/stripe/thin_event.rb', line 5 def @related_object end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/stripe/thin_event.rb', line 5 def type @type end |