class Monobank::Personal::Statement

Constants

ENDPOINT

Attributes

account_id[R]
from[R]
to[R]

Public Class Methods

new(token:, account_id:, from:, to:) click to toggle source
# File lib/monobank/personal/statement.rb, line 9
def initialize(token:, account_id:, from:, to:)
  @token = token
  @account_id = account_id
  @from = from
  @to = to
end

Private Instance Methods

define_resources(attributes) click to toggle source
# File lib/monobank/personal/statement.rb, line 26
def define_resources(attributes)
  attributes.map do |attrs|
    Monobank::Resources::Personal::Statement.new(attrs)
  end
end
pathname() click to toggle source
# File lib/monobank/personal/statement.rb, line 20
def pathname
  path = "#{ENDPOINT}/#{account_id}/#{from}"
  path = "#{path}/#{to}" if to
  path
end