cradlepoint 0.2.4 → 0.2.5

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: da72beae0d9630880fbbb24cf3cc73f6f6703e17
4
- data.tar.gz: f3a451464fbb99dc92749f9d8ab86ed3d8c3eaae
3
+ metadata.gz: 298f2d6373b22b0c235671b74e9901c121fd72ed
4
+ data.tar.gz: 4c5f924d6f5756c0de55bc394935592dc0d95438
5
5
  SHA512:
6
- metadata.gz: 7f0eeb35d988a5414aeb538d753f011c96aef524ad3a57a2bfe97615adf2f7eedb890f0767e2698a98881e0b3e90c2f87b5a09a169b6cdb273699c98f6aa38c6
7
- data.tar.gz: 06e27eac0f8aed31ec8c2801b13f71e79d150a33303a1341d07ea9c1582d31f9987b40e438f97243cffbd7434cf6f1e79d8725cce9ab9fe3f7f11d80b5ba3399
6
+ metadata.gz: 13dafc9d24541cd6c57878c469686be913d9c31ccac5a41e4ce77db6177380b95c0bd4e2f9315724e4622e080db22d7574d1ce6a6a30370ff49f01050238ee97
7
+ data.tar.gz: 853b391549de78ecb5e3ffa15db85e909dccb776e37d7b1f6ddac90539ccb8d9057fefbdbad384dd7ff8feefe3bdc49a3d4ca9c4af8930f9b67013b7086d907a
@@ -4,7 +4,8 @@ module Cradlepoint
4
4
  attr_accessor :id, :data, :ecm_firmware_uri, :ecm_configuration_uri,
5
5
  :ecm_configuration_manager_uri, :ecm_configuration_manager_data,
6
6
  :mac, :config_status, :description, :full_product_name, :ip_address,
7
- :name, :stream_usage_in, :stream_usage_out, :stream_usage_period
7
+ :name, :stream_usage_in, :stream_usage_out, :stream_usage_period,
8
+ :group_name
8
9
 
9
10
  def initialize(id = nil, options = {})
10
11
  self.id = id
@@ -75,6 +76,22 @@ module Cradlepoint
75
76
  self.ecm_configuration_uri
76
77
  end
77
78
 
79
+ def group
80
+ get unless self.data and self.data.any?
81
+ return nil unless self.data[:group]
82
+
83
+ group_data = Cradlepoint.make_request(get, build_url(self.data[:group].split('/api/v1').last))
84
+ self.group_name = group_data[:name]
85
+ group_data
86
+ end
87
+
88
+ def group_list
89
+ get unless self.data and self.data.any?
90
+ return nil unless self.data[:group]
91
+
92
+ Cradlepoint.make_request(get, build_url(self.data[:group].split('/api/v1').last + '/routers'))
93
+ end
94
+
78
95
  def lazy_load_router_data
79
96
  get # Grab the data from the api.
80
97
  self.ecm_firmware_uri = self.data[:actual_firmware]
@@ -1,3 +1,3 @@
1
1
  module Cradlepoint
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cradlepoint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - uceem
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-13 00:00:00.000000000 Z
11
+ date: 2013-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubyforge_project:
135
- rubygems_version: 2.0.5
135
+ rubygems_version: 2.0.3
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: Cradlepoint ECM API gem