Class: DoorLoop::Properties
- Inherits:
-
Object
- Object
- DoorLoop::Properties
- Defined in:
- lib/doorloop/properties.rb
Instance Method Summary collapse
- #find(id) ⇒ Object
-
#initialize(client) ⇒ Properties
constructor
A new instance of Properties.
- #list(options = {}) ⇒ Object
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( = {}) @client.get('properties', ) end |