Class: PortfolioManager::REST::Client

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#customer, #customer_list

Methods included from Property

#property, #property_list

Methods included from Meter

#meter, #meter_list, #metrics

Methods included from DataExchangeSettings

#data_exchange_custom_field_list, #data_exchange_settings

Methods included from Building

#building, #building_list

Methods included from Account

#account

Constructor Details

#initialize(options = {}) {|_self| ... } ⇒ Client

Returns a new instance of Client.

Yields:

  • (_self)

Yield Parameters:



12
13
14
15
16
17
18
# File 'lib/portfolio_manager/rest/client.rb', line 12

def initialize(options = {})
  @live = false
  options.each do |key, value|
    instance_variable_set("@#{key}", value)
  end
  yield self if block_given?
end

Instance Attribute Details

#liveObject

Returns the value of attribute live.



10
11
12
# File 'lib/portfolio_manager/rest/client.rb', line 10

def live
  @live
end

#passwordObject

Returns the value of attribute password.



10
11
12
# File 'lib/portfolio_manager/rest/client.rb', line 10

def password
  @password
end

#usernameObject

Returns the value of attribute username.



10
11
12
# File 'lib/portfolio_manager/rest/client.rb', line 10

def username
  @username
end