Class: DoorLoop::LeaseCharges

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

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ LeaseCharges

Returns a new instance of LeaseCharges.



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

def initialize(client)
  @client = client
end

Instance Method Details

#create(params) ⇒ Object



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

def create(params)
  @client.post('lease-charges', params)
end

#delete(id) ⇒ Object



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

def delete(id)
  @client.delete("lease-charges/#{id}")
end

#find(id) ⇒ Object



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

def find(id)
  @client.get("lease-charges/#{id}")
end

#list(options = {}) ⇒ Object



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

def list(options = {})
  @client.get('lease-charges', options)
end

#update(id, params) ⇒ Object



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

def update(id, params)
  @client.put("lease-charges/#{id}", params)
end