megam_api 0.70 → 0.71
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/promos.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64bfe0cf1c050cdddbbc5d97056a04c628b838b1
|
4
|
+
data.tar.gz: 89bfebf0981483a9dbbe56fc0af7d2f98cd14ca0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49962356b9a6463392bbc1697e68dfb8b512aee472998518a40f55e9416ac823069143965f78049483e1fad9cf649588a70c42cb0c6a32a486a038f142071e23
|
7
|
+
data.tar.gz: 826a0b8ac72588fe01869d761bd6c21324758b107ff4dedc5f20f9d1eab6618f6bdc48f355c7095dba83d7e1e58f9c7fc5efe029343fc8bb4dac46a34d54b922
|
data/lib/megam/api/version.rb
CHANGED
data/lib/megam/core/promos.rb
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
module Megam
|
17
17
|
class Promos < Megam::ServerAPI
|
18
18
|
def initialize(email=nil, api_key=nil, host=nil)
|
19
|
-
@id = nil
|
19
|
+
@id = nil
|
20
20
|
@code = nil
|
21
21
|
@amount = nil
|
22
22
|
@created_at = nil
|
@@ -60,7 +60,7 @@ module Megam
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
-
|
63
|
+
|
64
64
|
|
65
65
|
def some_msg(arg=nil)
|
66
66
|
if arg != nil
|
@@ -140,7 +140,7 @@ module Megam
|
|
140
140
|
end
|
141
141
|
|
142
142
|
def self.list(params)
|
143
|
-
promos = self.new(params["email"], params["api_key"],
|
143
|
+
promos = self.new(params["email"], params["api_key"], params["host"])
|
144
144
|
promos.megam_rest.get_promos
|
145
145
|
end
|
146
146
|
|
@@ -148,11 +148,11 @@ module Megam
|
|
148
148
|
# Megam::Promos
|
149
149
|
def self.show(params)
|
150
150
|
puts "[x] Called show"
|
151
|
-
pre = self.new(params["email"], params["api_key"])
|
151
|
+
pre = self.new(params["email"], params["api_key"], params["host"])
|
152
152
|
pre.megam_rest.get_promos(params["code"])
|
153
153
|
end
|
154
154
|
|
155
|
-
|
155
|
+
|
156
156
|
|
157
157
|
def to_s
|
158
158
|
Megam::Stuff.styled_hash(to_hash)
|