Sha256: c3890f783923b58ca194cd44a036e63a897f48025fb804e47f3a0a92f643a1b9

Contents?: true

Size: 501 Bytes

Versions: 4

Compression:

Stored size: 501 Bytes

Contents

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

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)

# =========================================
# Application Examples
# =========================================

rv_client.export_applications.each do |application|
  puts application.application_id
  puts application.unit.address
  puts application.lease.start_date
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rentvine-0.3.1 examples/applications.rb
rentvine-0.3.0 examples/applications.rb
rentvine-0.2.0 examples/applications.rb
rentvine-0.1.0 examples/applications.rb