Sha256: 7662594c3ee3332283fd83d83959a91ad59bc94ac9944c1e8e3d9e6379f0461b
Contents?: true
Size: 609 Bytes
Versions: 3
Compression:
Stored size: 609 Bytes
Contents
# frozen_string_literal: true require 'mitake/api' require 'mitake/model' module Mitake # Get the current balance # # @since 0.1.0 class Balance class << self # Get account point # # @see Mitake::Balance#amount # @return [Integer] # # @since 0.1.0 def amount execute&.first&.amount end end include API include Model path '/api/mtk/SmQuery' map 'AccountPoint', 'amount' # @!attribute [r] amount # @return [Integer] the amount of account point # # @since 0.1.0 attribute :amount, Integer end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mitake-0.1.2 | lib/mitake/balance.rb |
mitake-0.1.1 | lib/mitake/balance.rb |
mitake-0.1.0 | lib/mitake/balance.rb |