megam_api 1.51.2 → 1.51.3
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/balances.rb +13 -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: 44b023bae9c32337a5cb58e5371c0d436ef71da6
|
4
|
+
data.tar.gz: 125fef0bc7097eae7fcc3251b50531d7abc438d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c792658ee2c3909a52784763798886207160f326ad50dd70674f7cffa5a378a84a2be9895fa060738b55ed310afc3ee756ef10f8af989f19b50f1263f0ebad9
|
7
|
+
data.tar.gz: 7968effc68d26a6490282eb673721f7ed98bacda84fd1fa80539ba7edfb4741694a7deb2df62cf2230c8f8cd3489728a4d57b93da63884f0f3ea0d74cde46535
|
data/lib/megam/api/version.rb
CHANGED
data/lib/megam/core/balances.rb
CHANGED
@@ -4,6 +4,7 @@ module Megam
|
|
4
4
|
@id = nil
|
5
5
|
@account_id = nil
|
6
6
|
@credit = nil
|
7
|
+
@biller_credit = nil
|
7
8
|
@created_at = nil
|
8
9
|
@updated_at = nil
|
9
10
|
@some_msg = {}
|
@@ -39,6 +40,14 @@ module Megam
|
|
39
40
|
end
|
40
41
|
end
|
41
42
|
|
43
|
+
def biller_credit(arg=nil)
|
44
|
+
if arg != nil
|
45
|
+
@biller_credit = arg
|
46
|
+
else
|
47
|
+
@biller_credit
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
42
51
|
def created_at(arg=nil)
|
43
52
|
if arg != nil
|
44
53
|
@created_at = arg
|
@@ -74,6 +83,7 @@ module Megam
|
|
74
83
|
index_hash["id"] = id
|
75
84
|
index_hash["account_id"] = account_id
|
76
85
|
index_hash["credit"] = credit
|
86
|
+
index_hash["biller_credit"] = biller_credit
|
77
87
|
index_hash["created_at"] = created_at
|
78
88
|
index_hash["updated_at"] = updated_at
|
79
89
|
index_hash
|
@@ -90,6 +100,7 @@ module Megam
|
|
90
100
|
"id" => id,
|
91
101
|
"account_id" => account_id,
|
92
102
|
"credit" => credit,
|
103
|
+
"biller_credit" => biller_credit,
|
93
104
|
"created_at" => created_at,
|
94
105
|
"updated_at" => updated_at
|
95
106
|
}
|
@@ -101,6 +112,7 @@ module Megam
|
|
101
112
|
balances.id(o["id"]) if o.has_key?("id")
|
102
113
|
balances.account_id(o["account_id"]) if o.has_key?("account_id")
|
103
114
|
balances.credit(o["credit"]) if o.has_key?("credit")
|
115
|
+
balances.biller_credit(o["biller_credit"]) if o.has_key?("biller_credit")
|
104
116
|
balances.created_at(o["created_at"]) if o.has_key?("created_at")
|
105
117
|
balances.updated_at(o["updated_at"]) if o.has_key?("updated_at")
|
106
118
|
#success or error
|
@@ -121,6 +133,7 @@ module Megam
|
|
121
133
|
@id = o[:id] if o.has_key?(:id)
|
122
134
|
@account_id = o[:account_id] if o.has_key?(:account_id)
|
123
135
|
@credit = o[:credit] if o.has_key?(:credit)
|
136
|
+
@biller_credit = o[:biller_credit] if o.has_key?(:biller_credit)
|
124
137
|
@created_at = o[:created_at] if o.has_key?(:created_at)
|
125
138
|
@updated_at = o[:updated_at] if o.has_key?(:updated_at)
|
126
139
|
self
|
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.51.
|
4
|
+
version: 1.51.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajthilak, Kishorekumar Neelamegam, Ranjitha R, Vinodhini V, Rathish VBR, Rajesh
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-03-
|
12
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: excon
|