Class: DoorLoop::Properties

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

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Properties

Returns a new instance of Properties.



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

def initialize(client)
  @client = client
end

Instance Method Details

#find(id) ⇒ Object



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

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

#list(options = {}) ⇒ Object



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

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