lce 0.0.1 → 0.0.2

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: 42308cd92f775b295eda5cee11a402c71fa922bd
4
- data.tar.gz: 43f4d00d85f70453cb424a175b30e112f8179483
3
+ metadata.gz: 1a096cc82fab02f45fb4e0d4d43bb3c2c2211a72
4
+ data.tar.gz: 060e294e38e2142d9300b1ab29fdb4101f94ca29
5
5
  SHA512:
6
- metadata.gz: c590bcd48a506cbc23f7b59a74b44c72ff746fd5876a0baceebb6e75e402938699503ba47e1c68ea5bf4ece3f4385e67391fbcd58b0ac0a5cfae82dd8bff3d1c
7
- data.tar.gz: fa8bdae09510c95a474c9b4d9552cbbd1c9d0dc68d1f3bba0dd00e8ced48d73d1d2c18b42a0e7887743995f5d076dc2439fd95cca27716421d7b7b954338c61b
6
+ metadata.gz: 15f3b177bc50e143c7da1da4a11baf261c8565620f2f1a4410598aff9ff068fe9712dec8efc19365c05bb530b44100cd2edbce78f0100da7c941142151158740
7
+ data.tar.gz: 46e169d9a902668609ffe639e0b3549da7672f98c6aeda916043efd036251e3d0417e7b9b351a420836f82ec66f847d3bef22822cd6faae35606b934b26d4867
data/lib/lce.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require "lce/version"
2
2
  require "lce/client"
3
+ require "lce/product"
3
4
  require "lce/offer"
4
5
  require "lce/quote"
5
6
  require "lce/order"
@@ -0,0 +1,17 @@
1
+ require 'hashie'
2
+ require 'paginated_array'
3
+
4
+ module Lce
5
+ class Product < Hashie::Mash
6
+ include Hashie::Extensions::Coercion
7
+
8
+ class << self
9
+ def all
10
+ response = Lce.client.get('products', nil, nil, nil , nil)
11
+ response.map! do |q|
12
+ new(q)
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,4 +1,4 @@
1
1
  module Lce
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florent Piteau
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-20 00:00:00.000000000 Z
12
+ date: 2014-09-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -146,6 +146,7 @@ files:
146
146
  - lib/lce/client/request.rb
147
147
  - lib/lce/offer.rb
148
148
  - lib/lce/order.rb
149
+ - lib/lce/product.rb
149
150
  - lib/lce/quote.rb
150
151
  - lib/lce/version.rb
151
152
  - lib/paginated_array.rb