Class: Payrex::Entities::Deleted
- Inherits:
-
Object
- Object
- Payrex::Entities::Deleted
- Defined in:
- lib/entities/deleted.rb
Instance Attribute Summary collapse
-
#deleted ⇒ Object
readonly
Returns the value of attribute deleted.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(api_resource) ⇒ Deleted
constructor
A new instance of Deleted.
Constructor Details
#initialize(api_resource) ⇒ Deleted
Returns a new instance of Deleted.
7 8 9 10 11 12 |
# File 'lib/entities/deleted.rb', line 7 def initialize(api_resource) data = api_resource.data @id = data["id"] @deleted = data["deleted"] end |
Instance Attribute Details
#deleted ⇒ Object (readonly)
Returns the value of attribute deleted.
4 5 6 |
# File 'lib/entities/deleted.rb', line 4 def deleted @deleted end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/entities/deleted.rb', line 4 def id @id end |