Class: DoorLoop::Portfolios
- Inherits:
-
Object
- Object
- DoorLoop::Portfolios
- Defined in:
- lib/doorloop/portfolios.rb
Instance Method Summary collapse
- #find(id) ⇒ Object
-
#initialize(client) ⇒ Portfolios
constructor
A new instance of Portfolios.
- #list(options = {}) ⇒ Object
Constructor Details
#initialize(client) ⇒ Portfolios
Returns a new instance of Portfolios.
5 6 7 |
# File 'lib/doorloop/portfolios.rb', line 5 def initialize(client) @client = client end |
Instance Method Details
#find(id) ⇒ Object
13 14 15 |
# File 'lib/doorloop/portfolios.rb', line 13 def find(id) @client.get("property-groups/#{id}") end |
#list(options = {}) ⇒ Object
9 10 11 |
# File 'lib/doorloop/portfolios.rb', line 9 def list( = {}) @client.get('property-groups', ) end |