Class: Mitake::Balance

Inherits:
Object
  • Object
show all
Includes:
API, Model
Defined in:
lib/mitake/balance.rb

Overview

Get the current balance

Since:

  • 0.1.0

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Model

#attributes, included

Methods included from API

included

Instance Attribute Details

#amountInteger (readonly)

Returns the amount of account point.

Returns:

  • (Integer)

    the amount of account point

Since:

  • 0.1.0



33
# File 'lib/mitake/balance.rb', line 33

attribute :amount, Integer

Class Method Details

.amountInteger

Get account point

Returns:

  • (Integer)

See Also:

Since:

  • 0.1.0



18
19
20
# File 'lib/mitake/balance.rb', line 18

def amount
  execute&.first&.amount
end