megam_api 0.62 → 0.63
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 +4 -4
- data/lib/megam/api/version.rb +1 -1
- data/lib/megam/core/cat_requests.rb +15 -0
- 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: 271894fb639567159273c4022e475b5110fcdd10
|
4
|
+
data.tar.gz: 3eff3dd70b91086d365ffa90276cf45ccd601e51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2edbeff9fa4f6a9ecab4ee4427a90d1b55fcf9a017463bffe0a1c9a156339e8c163701f57957378981f0832ea57dc6335e08305bc8fa1520a424acbc010d3b31
|
7
|
+
data.tar.gz: 964bdd26ac9373791597a889289e3f10ba368460103d95c0754b91b45d8a87cd366481817f49ced6cb39d42d6ec76fa123ef0c85ead240378a6ffc47e8910b31
|
data/lib/megam/api/version.rb
CHANGED
@@ -19,6 +19,7 @@ module Megam
|
|
19
19
|
def initialize(email=nil, api_key=nil)
|
20
20
|
@id = nil
|
21
21
|
@cat_id = nil
|
22
|
+
@cattype = nil
|
22
23
|
@name = nil
|
23
24
|
@action = nil
|
24
25
|
@some_msg = {}
|
@@ -47,6 +48,16 @@ module Megam
|
|
47
48
|
end
|
48
49
|
end
|
49
50
|
|
51
|
+
|
52
|
+
def cattype(arg=nil)
|
53
|
+
if arg != nil
|
54
|
+
@cattype = arg
|
55
|
+
else
|
56
|
+
@cattype
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
|
50
61
|
def name(arg=nil)
|
51
62
|
if arg != nil
|
52
63
|
@name = arg
|
@@ -90,6 +101,7 @@ module Megam
|
|
90
101
|
index_hash["json_claz"] = self.class.name
|
91
102
|
index_hash["id"] = id
|
92
103
|
index_hash["cat_id"] = cat_id
|
104
|
+
index_hash["cattype"] = cattype
|
93
105
|
index_hash["name"] = name
|
94
106
|
index_hash["action"] = action
|
95
107
|
index_hash["created_at"] = created_at
|
@@ -106,6 +118,7 @@ module Megam
|
|
106
118
|
result = {
|
107
119
|
"id" => id,
|
108
120
|
"cat_id" => cat_id,
|
121
|
+
"cattype" => cattype,
|
109
122
|
"name" => name,
|
110
123
|
"action" => action,
|
111
124
|
"created_at" => created_at
|
@@ -118,6 +131,7 @@ module Megam
|
|
118
131
|
node = new
|
119
132
|
node.id(o["id"]) if o.has_key?("id")
|
120
133
|
node.cat_id(o["cat_id"]) if o.has_key?("cat_id")
|
134
|
+
node.cattype(o["cattype"]) if o.has_key?("cattype")
|
121
135
|
node.name(o["name"]) if o.has_key?("name")
|
122
136
|
node.action(o["action"]) if o.has_key?("action")
|
123
137
|
node.created_at(o["created_at"]) if o.has_key?("created_at")
|
@@ -138,6 +152,7 @@ module Megam
|
|
138
152
|
def from_hash(o)
|
139
153
|
@id = o[:id] if o.has_key?(:id)
|
140
154
|
@cat_id = o[:cat_id] if o.has_key?(:cat_id)
|
155
|
+
@cattype = o[:cattype] if o.has_key?(:cattype)
|
141
156
|
@name = o[:name] if o.has_key?(:name)
|
142
157
|
@action = o[:action] if o.has_key?(:action)
|
143
158
|
@created_at = o[:created_at] if o.has_key?(:created_at)
|
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.
|
4
|
+
version: '0.63'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajthilak, Kishorekumar Neelamegam, Thomas Alrin, Yeshwanth Kumar, Subash Sethurajan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|