netbox-client-ruby 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/netbox_client_ruby/entities.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a33a9e231e8aa997c0091b3f7c6e474ceb563af
|
4
|
+
data.tar.gz: 80460916076882c8f7e7dd25f8fca52ca9c2a1f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7fdcff4cf3a59a6e9359699c76ead967a9d402ac5418ad4c241760337a2efb2c9e27c7cab4919f865f36ca5b036b09bfdff7d467027e5cafcb9456adc4a2c21
|
7
|
+
data.tar.gz: 229f848553b8114bf08de8549e7cbc9191b546d09571f1f7ff33f5d6bb1c3fb4ee6c37d399086da62d47af64520063a16ecf97b0c8f6eda73bfca680dd8ca742
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -4,6 +4,7 @@ require 'netbox_client_ruby/error/local_error'
|
|
4
4
|
module NetboxClientRuby
|
5
5
|
module Entities
|
6
6
|
include NetboxClientRuby::Communication
|
7
|
+
include Enumerable
|
7
8
|
|
8
9
|
def self.included(other_klass)
|
9
10
|
other_klass.extend ClassMethods
|
@@ -120,8 +121,8 @@ module NetboxClientRuby
|
|
120
121
|
as_entity raw_data_array[index]
|
121
122
|
end
|
122
123
|
|
123
|
-
def
|
124
|
-
raw_data_array.
|
124
|
+
def each
|
125
|
+
raw_data_array.each { |raw_entity| yield as_entity(raw_entity) }
|
125
126
|
end
|
126
127
|
|
127
128
|
##
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netbox-client-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Mäder
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|