Class: DoorLoop::Portfolios

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

Instance Method Summary collapse

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(options = {})
  @client.get('property-groups', options)
end