segurocomar 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc513c2e99f6f9780241493329cf863a56856cf4
4
- data.tar.gz: d3f91bd2b2f064ef5d3f9b3bc6d81d1a2b1948b5
3
+ metadata.gz: 935fa39b3e4de609f00ebaf41968a6063072884b
4
+ data.tar.gz: d07fe53a12fdc980c5eae6af43999b5bc2676534
5
5
  SHA512:
6
- metadata.gz: fad4dd9028d7cb9f452df1762428f0a238a1bc1a17005486a34ec41b2f36834cde00943b2028fe78d605a99f187191d6fce973dbace1fd12110632d8635d284c
7
- data.tar.gz: d2ba123ca574f76f6b084f20f43ef1d453b3b9cc028ef2ad77841a3a783277ba8f3646c1a454591ea6319589fb0ddb158771dd68ce6b82baf3bdb03c0081d811
6
+ metadata.gz: 265e28bf7a04104f5d136c95b8546b74650afe742d22ca96aedaedba923510e2d14e16ff4c874a1822af70ecaad6f399df5d5c1aa74f8b7b966905287c774170
7
+ data.tar.gz: 472357c663191a16263b907196ff8b01b5a3a1454874e06b9c1e9a8b201619787c18d5a76ef385f667fa2ffca55fd069123fc96b331eb18d9e6ea8fc7d9ae54b
data/CHANGELOG.md CHANGED
@@ -25,3 +25,7 @@
25
25
  ## v0.1.0
26
26
 
27
27
  * Added method to get insurers from quote
28
+
29
+ ## v0.1.1
30
+
31
+ * Get featured brands
@@ -1,8 +1,8 @@
1
1
  module Segurocomar
2
2
  module Core
3
3
  module Cars
4
- def get_car_brands
5
- results = get_request('/car_brands')
4
+ def get_car_brands(attrs={})
5
+ results = get_request('/car_brands', attrs)
6
6
 
7
7
  results[:body].map { |r| Segurocomar::Entity::CarBrand.new(r) }
8
8
  end
@@ -1,8 +1,8 @@
1
1
  module Segurocomar
2
2
  module Core
3
3
  module Motorcycles
4
- def get_motorcycle_brands
5
- results = get_request('/motorcycle_brands')
4
+ def get_motorcycle_brands(attrs={})
5
+ results = get_request('/motorcycle_brands', attrs)
6
6
 
7
7
  results[:body].map { |r| Segurocomar::Entity::MotorcycleBrand.new(r) }
8
8
  end
@@ -1,8 +1,8 @@
1
1
  module Segurocomar
2
2
  module Core
3
3
  module Trucks
4
- def get_truck_brands
5
- results = get_request('/truck_brands')
4
+ def get_truck_brands(attrs={})
5
+ results = get_request('/truck_brands', attrs)
6
6
 
7
7
  results[:body].map { |r| Segurocomar::Entity::TruckBrand.new(r) }
8
8
  end
@@ -2,7 +2,7 @@ module Segurocomar
2
2
  module Entity
3
3
  class CarBrand
4
4
  def self.attr_list
5
- [:id, :name]
5
+ [:id, :name, :featured]
6
6
  end
7
7
 
8
8
  attr_reader *attr_list
@@ -2,7 +2,7 @@ module Segurocomar
2
2
  module Entity
3
3
  class MotorcycleBrand
4
4
  def self.attr_list
5
- [:id, :name]
5
+ [:id, :name, :featured]
6
6
  end
7
7
 
8
8
  attr_reader *attr_list
@@ -2,7 +2,7 @@ module Segurocomar
2
2
  module Entity
3
3
  class TruckBrand
4
4
  def self.attr_list
5
- [:id, :name]
5
+ [:id, :name, :featured]
6
6
  end
7
7
 
8
8
  attr_reader *attr_list
@@ -1,3 +1,3 @@
1
1
  module Segurocomar
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: segurocomar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-02 00:00:00.000000000 Z
11
+ date: 2016-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler