Class: Airwallex::Webhook::Event
- Inherits:
-
Object
- Object
- Airwallex::Webhook::Event
- Defined in:
- lib/airwallex/webhook.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(attributes = {}) ⇒ Event
Returns a new instance of Event.
59 60 61 62 63 64 |
# File 'lib/airwallex/webhook.rb', line 59 def initialize(attributes = {}) @id = attributes["id"] @type = attributes["type"] @data = attributes["data"] @created_at = attributes["created_at"] end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
57 58 59 |
# File 'lib/airwallex/webhook.rb', line 57 def created_at @created_at end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
57 58 59 |
# File 'lib/airwallex/webhook.rb', line 57 def data @data end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
57 58 59 |
# File 'lib/airwallex/webhook.rb', line 57 def id @id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
57 58 59 |
# File 'lib/airwallex/webhook.rb', line 57 def type @type end |