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.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(attributes = {}) ⇒ Event
Returns a new instance of Event.
63 64 65 66 67 68 |
# File 'lib/airwallex/webhook.rb', line 63 def initialize(attributes = {}) @id = attributes["id"] @name = attributes["name"] @data = attributes["data"] @created_at = attributes["created_at"] end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
61 62 63 |
# File 'lib/airwallex/webhook.rb', line 61 def created_at @created_at end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
61 62 63 |
# File 'lib/airwallex/webhook.rb', line 61 def data @data end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
61 62 63 |
# File 'lib/airwallex/webhook.rb', line 61 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
61 62 63 |
# File 'lib/airwallex/webhook.rb', line 61 def name @name end |