Class: DoorLoop::Units

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

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Units

Returns a new instance of Units.



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

def initialize(client)
  @client = client
end

Instance Method Details

#find(id) ⇒ Object



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

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

#list(options = {}) ⇒ Object



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

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