serpscan 0.1.1 → 0.1.3

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: 81052b0479b6d7e0502592206e3317c75df57b4b
4
- data.tar.gz: 1a8e30767f104a101be79c2c838c307f8a532f29
3
+ metadata.gz: 69a7cf0bfc2814b5e108c5883635a7226fb0f0a1
4
+ data.tar.gz: 35091f331922d0520e91ba6d864141e826d264e0
5
5
  SHA512:
6
- metadata.gz: a78d51affc97650eb75eb7e824ec381836e82026c59e65b2f6423df3174fa979ebde680e32725911694038027c03e2c0d7bbaad431463ac851444ea66fe96bb1
7
- data.tar.gz: 8cb634145192dc928265eb182186624cc0b2fc6bca49a2436bc5789ad12c47acfc78765ea8f58b5665eda2f5d93a1565c0024d0176e488f220950f9305b33b88
6
+ metadata.gz: fadd54f903e2061c7ceada457a2ae500e6fede2b5dedd8033d7083723a5cd0c1bf926486fc6feda0cee3441ac6ca7fa89c4894ee71a15005226bd64909b41216
7
+ data.tar.gz: 6ad84ef0e4a455b38f62ff897dc9e0b6ae3ed5786bc52e5b3b2e595c6e1562f47d486191e0b2540cabdb43c3bb17afdc1eee82238675f28a9822f9e1374597dd
@@ -5,6 +5,7 @@ require 'serpscan/serpscan_object'
5
5
  require 'serpscan/serpscan_child_object'
6
6
  require 'serpscan/keyword'
7
7
  require 'serpscan/search_engine'
8
+ require 'serpscan/search_engine_country'
8
9
  require 'serpscan/website'
9
10
  require 'serpscan/errors'
10
11
  require 'queryparams'
@@ -1,6 +1,10 @@
1
1
  module Serpscan
2
2
  class SearchEngine < SerpscanObject
3
- ATTRIBUTES = [:id, :title, :countries]
3
+ ATTRIBUTES = [:id, :title]
4
4
  attr_accessor *ATTRIBUTES
5
+
6
+ def countries
7
+ @countries ||= @raw_json["countries"].map { |country| Serpscan::SearchEngineCountry.new(country.merge(parent: self)) }
8
+ end
5
9
  end
6
- end
10
+ end
@@ -1,6 +1,6 @@
1
1
  module Serpscan
2
2
  class SearchEngineCountry < SerpscanChildObject
3
- ATTRIBUTES = [:id, :location, :search_engine_id]
3
+ ATTRIBUTES = [:id, :location, :search_engine_id, :default]
4
4
  attr_accessor *ATTRIBUTES
5
5
 
6
6
  def search_engine
@@ -1,3 +1,3 @@
1
1
  module Serpscan
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serpscan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Montgomery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-30 00:00:00.000000000 Z
11
+ date: 2015-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler