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.



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

Returns the value of attribute created_at.



61
62
63
# File 'lib/airwallex/webhook.rb', line 61

def created_at
  @created_at
end

#dataObject (readonly)

Returns the value of attribute data.



61
62
63
# File 'lib/airwallex/webhook.rb', line 61

def data
  @data
end

#idObject (readonly)

Returns the value of attribute id.



61
62
63
# File 'lib/airwallex/webhook.rb', line 61

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



61
62
63
# File 'lib/airwallex/webhook.rb', line 61

def name
  @name
end