Sha256: cbf433aba57fb22571e027ea06e323fdf41f38b4dc1bfec3e78990a124521c7e

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 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)

# =========================================
# Lease Examples
# =========================================

rv_client.leases.each do |lease|
  puts lease
end

# ===========================

lease_id = 7
rv_obj = rv_client.lease(lease_id)
puts rv_obj.address

Version data entries

4 entries across 4 versions & 1 rubygems

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