Class: PortfolioManager::REST::Client
- Inherits:
-
Object
- Object
- PortfolioManager::REST::Client
- Includes:
- API
- Defined in:
- lib/portfolio_manager/rest/client.rb
Overview
REST client configuration for PortfolioManager gem.
Constant Summary
Constants included from Connection
PortfolioManager::REST::Connection::ACCEPT_NOTE, PortfolioManager::REST::Connection::REJECT_NOTE
Instance Attribute Summary collapse
-
#live ⇒ Object
Returns the value of attribute live.
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(options = {}) {|_self| ... } ⇒ Client
constructor
A new instance of Client.
Methods included from Share
#meter_share_request, #pending_meter_shares, #pending_property_shares, #property_share_request
Methods included from Connection
#connection_request, #pending_connections
Methods included from Customer
Methods included from Property
Methods included from Meter
Methods included from DataExchangeSettings
#data_exchange_custom_field_list, #data_exchange_settings
Methods included from Building
Methods included from Account
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ Client
Returns a new instance of Client.
14 15 16 17 18 19 20 |
# File 'lib/portfolio_manager/rest/client.rb', line 14 def initialize( = {}) @live = false .each do |key, value| instance_variable_set("@#{key}", value) end yield self if block_given? end |
Instance Attribute Details
#live ⇒ Object
Returns the value of attribute live.
12 13 14 |
# File 'lib/portfolio_manager/rest/client.rb', line 12 def live @live end |
#password ⇒ Object
Returns the value of attribute password.
12 13 14 |
# File 'lib/portfolio_manager/rest/client.rb', line 12 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
12 13 14 |
# File 'lib/portfolio_manager/rest/client.rb', line 12 def username @username end |