Class: Payrex::Entities::Deleted

Inherits:
Object
  • Object
show all
Defined in:
lib/entities/deleted.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#deletedObject (readonly)

Returns the value of attribute deleted.



4
5
6
# File 'lib/entities/deleted.rb', line 4

def deleted
  @deleted
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/entities/deleted.rb', line 4

def id
  @id
end