megam_api 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/megam/api/version.rb +1 -1
- data/lib/megam/core/marketplace.rb +14 -20
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ac64dc7ec8ec9919fd499984affe96a6d1d357f
|
4
|
+
data.tar.gz: dd4e88039b954ffaeabdcff09904fe741c0424e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 449f1590d60a40b0aacbb8ef72cdeec18d0ff0e54e25a2875da51a4c7b3ecbd1fc2cf07e3f4ed32832bc20c390a45e3bdaf2d470b834901fcdade1d75ac10e88
|
7
|
+
data.tar.gz: 3fce2a00dac85c39154a090b61d30045137e477dd0c528a4d3dcf95c0b426be257b981dd95b8b1bc64e4a74d432a97ca5c26f8317adbdda005cc3bb73d452f3a
|
data/lib/megam/api/version.rb
CHANGED
@@ -20,8 +20,7 @@ module Megam
|
|
20
20
|
def initialize(email=nil, api_key=nil)
|
21
21
|
@id = nil
|
22
22
|
@name = nil
|
23
|
-
@
|
24
|
-
@catagory = nil
|
23
|
+
@appdetails = {}
|
25
24
|
@pricetype = nil
|
26
25
|
@features={}
|
27
26
|
@plan={}
|
@@ -46,21 +45,13 @@ module Megam
|
|
46
45
|
end
|
47
46
|
end
|
48
47
|
|
49
|
-
def
|
48
|
+
def appdetails(arg=nil)
|
50
49
|
if arg != nil
|
51
|
-
@
|
50
|
+
@appdetails = arg
|
52
51
|
else
|
53
|
-
@
|
52
|
+
@appdetails
|
54
53
|
end
|
55
|
-
end
|
56
|
-
|
57
|
-
def catagory(arg=nil)
|
58
|
-
if arg != nil
|
59
|
-
@catagory = arg
|
60
|
-
else
|
61
|
-
@catagory
|
62
|
-
end
|
63
|
-
end
|
54
|
+
end
|
64
55
|
|
65
56
|
def id(arg=nil)
|
66
57
|
if arg != nil
|
@@ -144,8 +135,7 @@ module Megam
|
|
144
135
|
index_hash["json_claz"] = self.class.name
|
145
136
|
index_hash["id"] = id
|
146
137
|
index_hash["name"] = name
|
147
|
-
index_hash["
|
148
|
-
index_hash["catagory"] = catagory
|
138
|
+
index_hash["appdetails"] = appdetails
|
149
139
|
index_hash["pricetype"] = pricetype
|
150
140
|
index_hash["features"] = features
|
151
141
|
index_hash["plan"] = plan
|
@@ -167,8 +157,7 @@ module Megam
|
|
167
157
|
result = {
|
168
158
|
"id" => id,
|
169
159
|
"name" => name,
|
170
|
-
"
|
171
|
-
"catagory" => catagory,
|
160
|
+
"appdetails" => appdetails,
|
172
161
|
"pricetype" => pricetype,
|
173
162
|
"features" => features,
|
174
163
|
"plan" => plan,
|
@@ -198,6 +187,12 @@ module Megam
|
|
198
187
|
app.features[:feature3] = oq["feature3"] if oq && oq.has_key?("feature3")
|
199
188
|
app.features[:feature4] = oq["feature4"] if oq && oq.has_key?("feature4")
|
200
189
|
|
190
|
+
oa = o["appdetails"]
|
191
|
+
app.appdetails[:logo] = oa["logo"] if oa && oa.has_key?("logo")
|
192
|
+
app.appdetails[:category] = oa["category"] if oa && oa.has_key?("category")
|
193
|
+
app.appdetails[:version] = oa["version"] if oa && oa.has_key?("version")
|
194
|
+
app.appdetails[:description] = oa["description"] if oa && oa.has_key?("description")
|
195
|
+
|
201
196
|
op = o["plan"]
|
202
197
|
app.plan[:price] = op["price"] if op && op.has_key?("price")
|
203
198
|
app.plan[:description] = op["description"] if op && op.has_key?("description")
|
@@ -220,9 +215,8 @@ module Megam
|
|
220
215
|
|
221
216
|
def from_hash(o)
|
222
217
|
@name = o["name"] if o.has_key?("name")
|
223
|
-
@catagory = o["catagory"] if o.has_key?("catagory")
|
224
218
|
@id = o["id"] if o.has_key?("id")
|
225
|
-
@
|
219
|
+
@appdetails = o["appdetails"] if o.has_key?("appdetails")
|
226
220
|
@pricetype = o["pricetype"] if o.has_key?("pricetype")
|
227
221
|
@features = o["features"] if o.has_key?("features")
|
228
222
|
@plan = o["plan"] if o.has_key?("plan")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: megam_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kishorekumar Neelamegam, Thomas Alrin, Subash Sethurajan, Rajthilak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|