tiltify 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/tiltify/objects/campaign.rb +8 -0
- data/lib/tiltify/objects/challenge.rb +9 -0
- data/lib/tiltify/objects/donation.rb +8 -0
- data/lib/tiltify/objects/reward.rb +12 -0
- data/lib/tiltify/objects/schedule.rb +8 -0
- data/lib/tiltify/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 310eedb1d0a718fe03cb44d9f31c440f65fa7c8bb607f2a1c1e72c19f4837caf
|
4
|
+
data.tar.gz: 366ae08257a081d8a0b4a6633841a97f6229d8587806cfb844f2bbe5cd2f63b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9764d4ef95acdf03f995dae8eeb4d869626d236b5176d25fab9affb1f879231f2a1f1ab48338537e1a927e2640d74b3faa6c86c05e6dedecf0b6bff1bf9beb2
|
7
|
+
data.tar.gz: 9065cd2283a749759a757209ece3ddb494030a1142fe413942dab630bec235541b7a35c274aae98aa1551e190785e7fd8a8417949854a9cc54883627e15215dd
|
data/Gemfile.lock
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
module Tiltify
|
2
2
|
class Campaign < Object
|
3
|
+
|
4
|
+
def initialize(options = {})
|
5
|
+
super options
|
6
|
+
|
7
|
+
self.starts_at = Time.at(options["startsAt"].to_s[0..-4].to_i) if options["startsAt"]
|
8
|
+
self.ends_at = Time.at(options["endsAt"].to_s[0..-4].to_i) if options["endsAt"]
|
9
|
+
end
|
10
|
+
|
3
11
|
end
|
4
12
|
end
|
@@ -1,4 +1,13 @@
|
|
1
1
|
module Tiltify
|
2
2
|
class Challenge < Object
|
3
|
+
|
4
|
+
def initialize(options = {})
|
5
|
+
super options
|
6
|
+
|
7
|
+
self.ends_at = Time.at(options["endsAt"].to_s[0..-4].to_i) if options["endsAt"]
|
8
|
+
self.created_at = Time.at(options["createdAt"].to_s[0..-4].to_i) if options["createdAt"]
|
9
|
+
self.updated_at = Time.at(options["updatedAt"].to_s[0..-4].to_i) if options["updatedAt"]
|
10
|
+
end
|
11
|
+
|
3
12
|
end
|
4
13
|
end
|
@@ -1,4 +1,16 @@
|
|
1
1
|
module Tiltify
|
2
2
|
class Reward < Object
|
3
|
+
|
4
|
+
def initialize(options = {})
|
5
|
+
super options
|
6
|
+
|
7
|
+
self.retired_at = Time.at(options["retiredAt"].to_s[0..-4].to_i) if options["retiredAt"]
|
8
|
+
self.activated_at = Time.at(options["activatedAt"].to_s[0..-4].to_i) if options["activatedAt"]
|
9
|
+
self.deactivated_at = Time.at(options["deactivatedAt"].to_s[0..-4].to_i) if options["deactivatedAt"]
|
10
|
+
self.ends_at = Time.at(options["endsAt"].to_s[0..-4].to_i) if options["endsAt"]
|
11
|
+
self.created_at = Time.at(options["createdAt"].to_s[0..-4].to_i) if options["createdAt"]
|
12
|
+
self.updated_at = Time.at(options["updatedAt"].to_s[0..-4].to_i) if options["updatedAt"]
|
13
|
+
end
|
14
|
+
|
3
15
|
end
|
4
16
|
end
|
@@ -1,4 +1,12 @@
|
|
1
1
|
module Tiltify
|
2
2
|
class Schedule < Object
|
3
|
+
|
4
|
+
def initialize(options = {})
|
5
|
+
super options
|
6
|
+
|
7
|
+
self.starts_at = Time.at(options["startsAt"].to_s[0..-4].to_i) if options["startsAt"]
|
8
|
+
self.ends_at = Time.at(options["endsAt"].to_s[0..-4].to_i) if options["endsAt"]
|
9
|
+
end
|
10
|
+
|
3
11
|
end
|
4
12
|
end
|
data/lib/tiltify/version.rb
CHANGED