Class: AbacatePay::Resources::Store

Inherits:
Resource
  • Object
show all
Defined in:
lib/abacate_pay/resources/store.rb,
lib/abacate_pay/resources/store/balance.rb

Overview

Represents store-level account data in the AbacatePay system.

Defined Under Namespace

Classes: Balance

Constant Summary collapse

RESOURCE_PROPERTIES =
{
  balance: "AbacatePay::Resources::Store::Balance"
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Store

Returns a new instance of Store.



13
14
15
# File 'lib/abacate_pay/resources/store.rb', line 13

def initialize(data)
  fill(data)
end

Instance Attribute Details

#balanceObject

Returns the value of attribute balance.



11
12
13
# File 'lib/abacate_pay/resources/store.rb', line 11

def balance
  @balance
end

#idObject

Returns the value of attribute id.



11
12
13
# File 'lib/abacate_pay/resources/store.rb', line 11

def id
  @id
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/abacate_pay/resources/store.rb', line 11

def name
  @name
end