Class: DoorLoop::LeaseCredits
- Inherits:
-
Object
- Object
- DoorLoop::LeaseCredits
- Defined in:
- lib/doorloop/lease_credits.rb
Instance Method Summary collapse
- #create(params) ⇒ Object
- #delete(id) ⇒ Object
- #find(id) ⇒ Object
-
#initialize(client) ⇒ LeaseCredits
constructor
A new instance of LeaseCredits.
- #list(options = {}) ⇒ Object
- #update(id, params) ⇒ Object
Constructor Details
#initialize(client) ⇒ LeaseCredits
Returns a new instance of LeaseCredits.
5 6 7 |
# File 'lib/doorloop/lease_credits.rb', line 5 def initialize(client) @client = client end |
Instance Method Details
#create(params) ⇒ Object
13 14 15 |
# File 'lib/doorloop/lease_credits.rb', line 13 def create(params) @client.post('lease-credits', params) end |
#delete(id) ⇒ Object
25 26 27 |
# File 'lib/doorloop/lease_credits.rb', line 25 def delete(id) @client.delete("lease-credits/#{id}") end |
#find(id) ⇒ Object
17 18 19 |
# File 'lib/doorloop/lease_credits.rb', line 17 def find(id) @client.get("lease-credits/#{id}") end |
#list(options = {}) ⇒ Object
9 10 11 |
# File 'lib/doorloop/lease_credits.rb', line 9 def list( = {}) @client.get('lease-credits', ) end |
#update(id, params) ⇒ Object
21 22 23 |
# File 'lib/doorloop/lease_credits.rb', line 21 def update(id, params) @client.put("lease-credits/#{id}", params) end |