megam_api 1.5.8 → 1.5.9
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/eventsvm.rb +13 -11
- 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: 06899229342d8d201a87fd29469b84a1490d53e7
|
4
|
+
data.tar.gz: 76e30f8bec8a6af9008168a87261de70560a6e8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59d7626726d0dca0503d6be15dbd673068e6be3a8ea0d1d0313100f843155a76eeecf4d48da2dac9a07b41ad20cc54145e2e7f40fd5b7a3f2e62c9012e908e89
|
7
|
+
data.tar.gz: 39fcab572073029e813f05a176db76ba488dcb5fdd2a3501454972b6b4c67b1a6504ba8a8f3c33a4f86c8144e8e2608913668533fcd7c51bce510718b3b1658c
|
data/lib/megam/api/version.rb
CHANGED
data/lib/megam/core/eventsvm.rb
CHANGED
@@ -6,8 +6,8 @@ module Megam
|
|
6
6
|
@event_type = nil
|
7
7
|
@data = []
|
8
8
|
@created_at = nil
|
9
|
+
@id = nil
|
9
10
|
@limit = nil
|
10
|
-
@id =nil
|
11
11
|
@some_msg = {}
|
12
12
|
super(o)
|
13
13
|
end
|
@@ -24,7 +24,7 @@ module Megam
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
|
27
|
+
def id(arg=nil)
|
28
28
|
if arg != nil
|
29
29
|
@id = arg
|
30
30
|
else
|
@@ -96,6 +96,7 @@ module Megam
|
|
96
96
|
index_hash["data"] = data
|
97
97
|
index_hash["limit"] = limit
|
98
98
|
index_hash["created_at"] = created_at
|
99
|
+
index_hash["id"] = id
|
99
100
|
index_hash["some_msg"] = some_msg
|
100
101
|
index_hash
|
101
102
|
end
|
@@ -114,7 +115,7 @@ module Megam
|
|
114
115
|
"data" => data,
|
115
116
|
"limit" => limit,
|
116
117
|
"created_at" => created_at,
|
117
|
-
|
118
|
+
"id" => id
|
118
119
|
}
|
119
120
|
result
|
120
121
|
end
|
@@ -122,6 +123,7 @@ module Megam
|
|
122
123
|
def self.json_create(o)
|
123
124
|
evt = new({})
|
124
125
|
evt.account_id(o["account_id"]) if o.has_key?("account_id")
|
126
|
+
evt.id(o["id"]) if o.has_key?("id")
|
125
127
|
evt.assembly_id(o["assembly_id"]) if o.has_key?("assembly_id")
|
126
128
|
evt.event_type(o["event_type"]) if o.has_key?("event_type") #this will be an array? can hash store array?
|
127
129
|
evt.data(o["data"]) if o.has_key?("data")
|
@@ -141,13 +143,13 @@ module Megam
|
|
141
143
|
end
|
142
144
|
|
143
145
|
def from_hash(o)
|
144
|
-
@account_id
|
145
|
-
@assembly_id
|
146
|
-
@event_type
|
147
|
-
@data
|
148
|
-
@limit
|
149
|
-
@created_at
|
150
|
-
|
146
|
+
@account_id = o[:account_id] if o.has_key?(:account_id)
|
147
|
+
@assembly_id = o[:assembly_id] if o.has_key?(:assembly_id)
|
148
|
+
@event_type = o[:event_type] if o.has_key?(:event_type)
|
149
|
+
@data = o[:data] if o.has_key?(:data)
|
150
|
+
@limit = o[:limit] if o.has_key?(:limit)
|
151
|
+
@created_at = o[:created_at] if o.has_key?(:created_at)
|
152
|
+
@id = o[:id] if o.has_key?(:id)
|
151
153
|
self
|
152
154
|
end
|
153
155
|
|
@@ -163,7 +165,7 @@ module Megam
|
|
163
165
|
|
164
166
|
# Load a account by email_p
|
165
167
|
def self.show(o)
|
166
|
-
|
168
|
+
evt = from_hash(o)
|
167
169
|
evt.megam_rest.get_eventsvm(o[:limit], evt.from_hash(o).for_json)
|
168
170
|
end
|
169
171
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: megam_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajthilak, Kishorekumar Neelamegam, Ranjitha R, Rajesh Rajagopalan, Thomas Alrin,
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-08-
|
12
|
+
date: 2016-08-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: excon
|