neuron-client 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/neuron-client.rb +1 -0
- data/lib/neuron-client/geo_target.rb +16 -0
- data/lib/neuron-client/version.rb +1 -1
- metadata +20 -19
data/lib/neuron-client.rb
CHANGED
@@ -6,6 +6,7 @@ require "neuron-client/ad"
|
|
6
6
|
require "neuron-client/ad_zone"
|
7
7
|
require "neuron-client/blocked_referer"
|
8
8
|
require "neuron-client/blocked_user_agent"
|
9
|
+
require "neuron-client/geo_target"
|
9
10
|
require "neuron-client/real_time_stats"
|
10
11
|
require "neuron-client/report"
|
11
12
|
require "neuron-client/s3_file"
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Neuron
|
2
|
+
module Client
|
3
|
+
class GeoTarget
|
4
|
+
include Connected
|
5
|
+
resource_name("geo_target")
|
6
|
+
resources_name("geo_targets")
|
7
|
+
|
8
|
+
attr_accessor :geo_type, :full_name, :name, :abbreviation, :updated_at
|
9
|
+
|
10
|
+
def self.query(parameters)
|
11
|
+
response = self.connection.get("geo_targets", parameters)
|
12
|
+
response.map{|hash| self.new(hash[self.resource_name])}
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neuron-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -15,7 +15,7 @@ default_executable:
|
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rest-client
|
18
|
-
requirement: &
|
18
|
+
requirement: &20119040 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: 1.6.3
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *20119040
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: yajl-ruby
|
29
|
-
requirement: &
|
29
|
+
requirement: &20118540 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: 0.8.2
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *20118540
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: rspec
|
40
|
-
requirement: &
|
40
|
+
requirement: &20118080 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
@@ -45,10 +45,10 @@ dependencies:
|
|
45
45
|
version: 2.6.0
|
46
46
|
type: :development
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *20118080
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: simplecov
|
51
|
-
requirement: &
|
51
|
+
requirement: &20151080 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ! '>='
|
@@ -56,10 +56,10 @@ dependencies:
|
|
56
56
|
version: 0.4.2
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
|
-
version_requirements: *
|
59
|
+
version_requirements: *20151080
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: guard
|
62
|
-
requirement: &
|
62
|
+
requirement: &20150600 !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
65
65
|
- - ! '>='
|
@@ -67,10 +67,10 @@ dependencies:
|
|
67
67
|
version: 0.5.1
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
|
-
version_requirements: *
|
70
|
+
version_requirements: *20150600
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: guard-bundler
|
73
|
-
requirement: &
|
73
|
+
requirement: &20150140 !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
75
75
|
requirements:
|
76
76
|
- - ! '>='
|
@@ -78,10 +78,10 @@ dependencies:
|
|
78
78
|
version: 0.1.3
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
|
-
version_requirements: *
|
81
|
+
version_requirements: *20150140
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
83
|
name: guard-rspec
|
84
|
-
requirement: &
|
84
|
+
requirement: &20149680 !ruby/object:Gem::Requirement
|
85
85
|
none: false
|
86
86
|
requirements:
|
87
87
|
- - ! '>='
|
@@ -89,10 +89,10 @@ dependencies:
|
|
89
89
|
version: 0.4.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
|
-
version_requirements: *
|
92
|
+
version_requirements: *20149680
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: fakeweb
|
95
|
-
requirement: &
|
95
|
+
requirement: &20149220 !ruby/object:Gem::Requirement
|
96
96
|
none: false
|
97
97
|
requirements:
|
98
98
|
- - ! '>='
|
@@ -100,10 +100,10 @@ dependencies:
|
|
100
100
|
version: 1.3.0
|
101
101
|
type: :development
|
102
102
|
prerelease: false
|
103
|
-
version_requirements: *
|
103
|
+
version_requirements: *20149220
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: vcr
|
106
|
-
requirement: &
|
106
|
+
requirement: &20148760 !ruby/object:Gem::Requirement
|
107
107
|
none: false
|
108
108
|
requirements:
|
109
109
|
- - ! '>='
|
@@ -111,7 +111,7 @@ dependencies:
|
|
111
111
|
version: 1.10.2
|
112
112
|
type: :development
|
113
113
|
prerelease: false
|
114
|
-
version_requirements: *
|
114
|
+
version_requirements: *20148760
|
115
115
|
description: Neuron Admin Client Gem
|
116
116
|
email:
|
117
117
|
- devteam@rmmonline.com
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- lib/neuron-client/blocked_user_agent.rb
|
134
134
|
- lib/neuron-client/connected.rb
|
135
135
|
- lib/neuron-client/connection.rb
|
136
|
+
- lib/neuron-client/geo_target.rb
|
136
137
|
- lib/neuron-client/real_time_stats.rb
|
137
138
|
- lib/neuron-client/report.rb
|
138
139
|
- lib/neuron-client/s3_file.rb
|