Sha256: 3dd7469174fb2738cf5c36101ff4fa173c9bcfbf33ba05a143cb04234b5eb886

Contents?: true

Size: 481 Bytes

Versions: 3

Compression:

Stored size: 481 Bytes

Contents

require 'pry-byebug'
require 'dotenv'
require_relative '../lib/rentvine'

Dotenv.load('../.env')

auth = {
  account_code: ENV['RENTVINE_ACCOUNT_CODE'],
  api_key: ENV['RENTVINE_API_KEY'],
  api_secret: ENV['RENTVINE_API_SECRET']
}
rv_client = Rentvine::Client.new(auth)

# =========================================
# Assocation Examples
# =========================================

rv_client.export_leaeses.each do |lease_info|
  puts lease_info.balance.past_due_total_amount
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rentvine-0.4.0 examples/balances.rb
rentvine-0.3.3 examples/balances.rb
rentvine-0.3.2 examples/balances.rb