portfolio_manager 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2aeb3c620711b489a8f03cf237698161934f2a5a
4
- data.tar.gz: cfcd57981280ce251febb6dba5efd75bfe078d9a
3
+ metadata.gz: 9e73d6df7977436db99c3ba6c5d24328d71277f4
4
+ data.tar.gz: 8851befec3c8da7cd756bc70a1db701f7c36957d
5
5
  SHA512:
6
- metadata.gz: 9c77942c67014ce52b7d254c78809d7451ae47804f43d321bc103a66273298d84d6013ea94cd97716b09e82399a1d6131016f5cf2bcd04877a42abafa66397b4
7
- data.tar.gz: 2d228dd9e3f87786e865f22eb91b4561bf4af4acadd7bed82ecb166ba2c70cfcded47b21878b00b86511e5ac78cc0c928a6362fcfa5051090f9657f1990d6c99
6
+ metadata.gz: 98f0605bd91c41974d843379c0ae1816c479b68c48a42a6a7084fb500309b532b96df464e8578379446d8755933b116f30ed6ca26f3e24d56d5aab7aadf19a0b
7
+ data.tar.gz: 2f3b7d75360623a9f7baee86f621b032ea615e9ca8e49c6f08c8d9520775830af570b302efceb512e32c47e5d7f51b31f583fd7707a4cc7542123cd07b8a3b07
data/README.md CHANGED
@@ -36,7 +36,7 @@ API calls implemented from http://portfoliomanager.energystar.gov/webservices/ho
36
36
  http://portfoliomanager.energystar.gov/webservices/home/api/account
37
37
 
38
38
  HTTP | Path | Method | Description
39
- ---- | ---- | -----------
39
+ ---- | ---- | ------ | -----------
40
40
  GET | /account | `account` | Returns general information for your account.
41
41
  GET | /dataExchangeSettings | `data_exchange_settings` | Returns the settings that define your data exchange service offerings.
42
42
  GET | /dataExchangeSettings/customField/list | `data_exchange_custom_field_list` | Returns a list of custom fields that you have defined for your account.
@@ -45,7 +45,7 @@ GET | /dataExchangeSettings/customField/list | `data_exchange_custom_field_list`
45
45
  http://portfoliomanager.energystar.gov/webservices/home/api/property
46
46
 
47
47
  HTTP | Path | Method | Description
48
- ---- | ---- | -----------
48
+ ---- | ---- | ------ | -----------
49
49
  GET | /property/(propertyId) | `property(property_id)` | Returns information for a specific property.
50
50
  GET | /account/(accountId)/property/list | `property_list(account_id)` | Returns a list of properties for a specified user.
51
51
 
@@ -53,7 +53,7 @@ GET | /account/(accountId)/property/list | `property_list(account_id)` | Returns
53
53
  http://portfoliomanager.energystar.gov/webservices/home/api/building
54
54
 
55
55
  HTTP | Path | Method | Description
56
- ---- | ---- | -----------
56
+ ---- | ---- | ------ | -----------
57
57
  GET | /building/(buildingId) | `building` | Returns information for a specific building.
58
58
  GET | /property/(propertyId)/building/list | `building_list(property_id)` | Returns a list of buildings that belong to a specified property.
59
59
 
@@ -61,7 +61,7 @@ GET | /property/(propertyId)/building/list | `building_list(property_id)` | Retu
61
61
  http://portfoliomanager.energystar.gov/webservices/home/api/meter
62
62
 
63
63
  HTTP | Path | Method | Description
64
- ---- | ---- | -----------
64
+ ---- | ---- | ------ | -----------
65
65
  GET | /meter/(meterId) | `meter(meter_id)` | Returns information for a specified meter.
66
66
  GET | /property/(propertyId)/meter/list | `meter_list(property_id)` | Returns a list of meters for a specified property.
67
67
  GET | /meter/(meterId)/consumptionData?page=(page)&startDate=(YYYY-MM-DD)&endDate=(YYYY-MM-DD) | `metrics(property_id, year, month, measurement_system, metric)` | Returns the consumption data for a specified meter in sets of 20.
@@ -3,6 +3,7 @@ require 'portfolio_manager/rest/building'
3
3
  require 'portfolio_manager/rest/data_exchange_settings'
4
4
  require 'portfolio_manager/rest/meter'
5
5
  require 'portfolio_manager/rest/property'
6
+ require 'portfolio_manager/rest/customer'
6
7
 
7
8
  module PortfolioManager
8
9
  module REST
@@ -15,6 +16,7 @@ module PortfolioManager
15
16
  include PortfolioManager::REST::DataExchangeSettings
16
17
  include PortfolioManager::REST::Meter
17
18
  include PortfolioManager::REST::Property
19
+ include PortfolioManager::REST::Customer
18
20
  end
19
21
  end
20
22
  end
@@ -0,0 +1,28 @@
1
+ require 'portfolio_manager/rest/utils'
2
+
3
+ module PortfolioManager
4
+ module REST
5
+ ##
6
+ # Customer services
7
+ # @see https://portfoliomanager.energystar.gov/webservices/home/api/account
8
+ module Customer
9
+ include PortfolioManager::REST::Utils
10
+
11
+ ##
12
+ # Returns a list of customers that you are connected to.
13
+ #
14
+ # @see https://portfoliomanager.energystar.gov/webservices/home/api/account/customerList/get
15
+ def customer_list
16
+ perform_get_request("/customer/list")
17
+ end
18
+
19
+ ##
20
+ # Returns general account information for a specific customer that you are connected to.
21
+ #
22
+ # https://portfoliomanager.energystar.gov/webservices/home/api/account/customer/get
23
+ def customer(customer_id)
24
+ perform_get_request("/cutomer/#{customer_id}")
25
+ end
26
+ end
27
+ end
28
+ end
@@ -1,3 +1,3 @@
1
1
  module PortfolioManager
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: portfolio_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Reed
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-01 00:00:00.000000000 Z
11
+ date: 2017-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hurley
@@ -115,6 +115,7 @@ files:
115
115
  - lib/portfolio_manager/rest/api.rb
116
116
  - lib/portfolio_manager/rest/building.rb
117
117
  - lib/portfolio_manager/rest/client.rb
118
+ - lib/portfolio_manager/rest/customer.rb
118
119
  - lib/portfolio_manager/rest/data_exchange_settings.rb
119
120
  - lib/portfolio_manager/rest/meter.rb
120
121
  - lib/portfolio_manager/rest/property.rb
@@ -142,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
143
  version: '0'
143
144
  requirements: []
144
145
  rubyforge_project:
145
- rubygems_version: 2.4.5.1
146
+ rubygems_version: 2.5.2
146
147
  signing_key:
147
148
  specification_version: 4
148
149
  summary: A Ruby client for the EnergyStar Portfolio Manager web services.