Class: DoorLoop::Leases

Inherits:
Object
  • Object
show all
Defined in:
lib/doorloop/leases.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Leases

Returns a new instance of Leases.



5
6
7
# File 'lib/doorloop/leases.rb', line 5

def initialize(client)
  @client = client
end

Instance Method Details

#find(id) ⇒ Object



13
14
15
# File 'lib/doorloop/leases.rb', line 13

def find(id)
  @client.get("leases/#{id}")
end

#list(options = {}) ⇒ Object



9
10
11
# File 'lib/doorloop/leases.rb', line 9

def list(options = {})
  @client.get('leases', options)
end

#move_in_tenant(params) ⇒ Object



17
18
19
# File 'lib/doorloop/leases.rb', line 17

def move_in_tenant(params)
  @client.post('leases/move-in', params)
end

#move_out_tenant(params) ⇒ Object



21
22
23
# File 'lib/doorloop/leases.rb', line 21

def move_out_tenant(params)
  @client.post('leases/move-out', params)
end

#tenantsObject



25
26
27
# File 'lib/doorloop/leases.rb', line 25

def tenants
  @client.get('leases/tenants')
end