Module: PortfolioManager::REST::Share

Includes:
Utils
Included in:
API
Defined in:
lib/portfolio_manager/rest/share.rb

Overview

Share services

Instance Method Summary collapse

Instance Method Details

#meter_share_request(meter_id, accept = true) ⇒ Object

Accepts/rejects a pending share request for a specific property or meter.



33
34
35
# File 'lib/portfolio_manager/rest/share.rb', line 33

def meter_share_request(meter_id, accept = true)
  share_request(meter_id, :meter, accept)
end

#pending_meter_shares(link = nil) ⇒ Object

Returns a list of property or meter share requests that are pending. These property share requests belong to customers that you are already connected to. The list of pending property share requests is returned in sets of 20.



20
21
22
# File 'lib/portfolio_manager/rest/share.rb', line 20

def pending_meter_shares(link = nil)
  pending_shares(:meter, link)
end

#pending_property_shares(link = nil) ⇒ Object



24
25
26
# File 'lib/portfolio_manager/rest/share.rb', line 24

def pending_property_shares(link = nil)
  pending_shares(:property, link)
end

#property_share_request(property_id, accept = true) ⇒ Object



37
38
39
# File 'lib/portfolio_manager/rest/share.rb', line 37

def property_share_request(property_id, accept = true)
  share_request(property_id, :property, accept)
end