Class: Airwallex::Webhook::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/airwallex/webhook.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject (readonly)

Returns the value of attribute created_at.



57
58
59
# File 'lib/airwallex/webhook.rb', line 57

def created_at
  @created_at
end

#dataObject (readonly)

Returns the value of attribute data.



57
58
59
# File 'lib/airwallex/webhook.rb', line 57

def data
  @data
end

#idObject (readonly)

Returns the value of attribute id.



57
58
59
# File 'lib/airwallex/webhook.rb', line 57

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type.



57
58
59
# File 'lib/airwallex/webhook.rb', line 57

def type
  @type
end