Class: Payrex::Entities::Event
- Inherits:
-
Object
- Object
- Payrex::Entities::Event
- Defined in:
- lib/entities/event.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.
-
#pending_webhooks ⇒ Object
readonly
Returns the value of attribute pending_webhooks.
-
#previous_attributes ⇒ Object
readonly
Returns the value of attribute previous_attributes.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(api_resource) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(api_resource) ⇒ Event
Returns a new instance of Event.
12 13 14 15 16 17 18 19 20 |
# File 'lib/entities/event.rb', line 12 def initialize(api_resource) @id = api_resource.data["id"] @data = api_resource.data["data"] @type = api_resource.data["type"] @pending_webhooks = api_resource.data["pending_webhooks"] @previous_attributes = api_resource.data["previous_attributes"] @created_at = api_resource.data["created_at"] @updated_at = api_resource.data["updated_at"] end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/entities/event.rb', line 4 def created_at @created_at end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/entities/event.rb', line 4 def data @data end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/entities/event.rb', line 4 def id @id end |
#pending_webhooks ⇒ Object (readonly)
Returns the value of attribute pending_webhooks.
4 5 6 |
# File 'lib/entities/event.rb', line 4 def pending_webhooks @pending_webhooks end |
#previous_attributes ⇒ Object (readonly)
Returns the value of attribute previous_attributes.
4 5 6 |
# File 'lib/entities/event.rb', line 4 def previous_attributes @previous_attributes end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/entities/event.rb', line 4 def type @type end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/entities/event.rb', line 4 def updated_at @updated_at end |