Class: Payrex::Entities::Merchant
- Inherits:
-
Object
- Object
- Payrex::Entities::Merchant
- Defined in:
- lib/entities/merchant.rb
Instance Attribute Summary collapse
-
#connection_type ⇒ Object
readonly
Returns the value of attribute connection_type.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#livemode ⇒ Object
readonly
Returns the value of attribute livemode.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(api_resource) ⇒ Merchant
constructor
A new instance of Merchant.
Constructor Details
#initialize(api_resource) ⇒ Merchant
Returns a new instance of Merchant.
11 12 13 14 15 16 17 18 |
# File 'lib/entities/merchant.rb', line 11 def initialize(api_resource) @id = api_resource.data["id"] @resource = api_resource.data["resource"] @connection_type = api_resource.data["connection_type"] @livemode = api_resource.data["livemode"] @created_at = api_resource.data["created_at"] @updated_at = api_resource.data["updated_at"] end |
Instance Attribute Details
#connection_type ⇒ Object (readonly)
Returns the value of attribute connection_type.
4 5 6 |
# File 'lib/entities/merchant.rb', line 4 def connection_type @connection_type end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/entities/merchant.rb', line 4 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/entities/merchant.rb', line 4 def id @id end |
#livemode ⇒ Object (readonly)
Returns the value of attribute livemode.
4 5 6 |
# File 'lib/entities/merchant.rb', line 4 def livemode @livemode end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
4 5 6 |
# File 'lib/entities/merchant.rb', line 4 def resource @resource end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/entities/merchant.rb', line 4 def updated_at @updated_at end |