mercadolibre 0.8.5 → 0.8.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6ca04c86d3dd7bbb8911188c7dff75b892cdb27
|
4
|
+
data.tar.gz: ed85d3b633f289b24ad4fa30b77cc48d2ed9b635
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a830d9d78509ffbc62f1c22c8f53badc3f21499cfa1651bd65c38cadf1af80552cecb20187f57d4f41e312bace8269da22f31a5d8248bcb3f991a9dad395e5e5
|
7
|
+
data.tar.gz: 0c025ea8793571aeae4260bcf2d45f698e4950fc3364e6e428b5897c9527765d8a36ae106f72181bcf473b43c9c3137d6da0e8c8c594736bcaca8596381dd17d
|
data/CHANGELOG.md
CHANGED
@@ -114,6 +114,12 @@ module Mercadolibre
|
|
114
114
|
end
|
115
115
|
end
|
116
116
|
|
117
|
+
def get_item_description(item_id)
|
118
|
+
result = get_request("/items/#{item_id}/description")
|
119
|
+
|
120
|
+
Mercadolibre::Entity::ItemDescription.new(result)
|
121
|
+
end
|
122
|
+
|
117
123
|
def get_item_descriptions(item_id)
|
118
124
|
results = get_request("/items/#{item_id}/descriptions")
|
119
125
|
|
@@ -2,15 +2,17 @@ module Mercadolibre
|
|
2
2
|
module Entity
|
3
3
|
class ItemDescription
|
4
4
|
def self.attr_list
|
5
|
-
[:id, :created, :text, :plain_text]
|
5
|
+
[:id, :created, :last_updated, :date_created, :text, :plain_text]
|
6
6
|
end
|
7
7
|
|
8
8
|
attr_reader *attr_list
|
9
9
|
|
10
10
|
def initialize(attributes={})
|
11
|
+
time_attrs = ['created', 'date_created', 'last_updated']
|
12
|
+
|
11
13
|
attributes.each do |k, v|
|
12
|
-
if k.to_s
|
13
|
-
self.
|
14
|
+
if time_attrs.include?(k.to_s)
|
15
|
+
self.send("#{k}=", Time.parse(v)) unless v.nil?
|
14
16
|
else
|
15
17
|
self.send("#{k}=", v) if self.respond_to?(k)
|
16
18
|
end
|
data/lib/mercadolibre/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mercadolibre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.6
|
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-04-
|
11
|
+
date: 2016-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|