class Tikkie::Api::V1::Responses::User

Response when requesting an user.

Public Instance Methods

active?() click to toggle source
# File lib/tikkie/api/v1/responses/user.rb, line 22
def active?
  status == Tikkie::Api::V1::Types::UserStatus::ACTIVE
end
bank_accounts() click to toggle source
# File lib/tikkie/api/v1/responses/user.rb, line 26
def bank_accounts
  @bank_accounts ||= begin
    bank_accounts = []

    if data[:bankAccounts]
      data[:bankAccounts].each do |data|
        bank_accounts << Tikkie::Api::V1::Responses::BankAccount.new(data)
      end
    end

    bank_accounts
  end
end
name() click to toggle source
# File lib/tikkie/api/v1/responses/user.rb, line 13
def name
  data[:name]
end
status() click to toggle source

see UserStatus

# File lib/tikkie/api/v1/responses/user.rb, line 18
def status
  data[:status]
end
user_token() click to toggle source
# File lib/tikkie/api/v1/responses/user.rb, line 9
def user_token
  data[:userToken]
end