Module: DebounceIo::Balance
Constant Summary collapse
- BALANCE_PARAMS =
{ action: 'balance' }.freeze
- BALANCE_PROPERTIES =
%w[balance].freeze
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
12 13 14 15 16 |
# File 'lib/debounce_io/balance.rb', line 12 def call Client.get(params: BALANCE_PARAMS) .then { |balance_hash| sanitize_balance_params(balance_hash) } .then { |sanitized_params| OpenStruct.new(sanitized_params) } end |