tiltify 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de4b0ac4ba6b988eca685054c25fc6f1e8579ceec00d1d7cdc6091bf06b1ace6
4
- data.tar.gz: d88687edb6753f9a3b34bf3936740646322eea8be82b2ae18a2589763eda1c55
3
+ metadata.gz: 310eedb1d0a718fe03cb44d9f31c440f65fa7c8bb607f2a1c1e72c19f4837caf
4
+ data.tar.gz: 366ae08257a081d8a0b4a6633841a97f6229d8587806cfb844f2bbe5cd2f63b2
5
5
  SHA512:
6
- metadata.gz: bfa30019176b28a06b42e2bab140d33cf1b7d4ba06a160a0a44f0e15dedc46798aa8f4e2108dc074c9400161ef988b518112b058ec13d939d1d8b8161e5ea84d
7
- data.tar.gz: ea13d6f2ace92776824adbbb3f1532a77d754860f50fac5b47c223659281a04315ea0eb92a55dbb81272a63495154bdeb702b45c423670d739f0dec506cf9761
6
+ metadata.gz: e9764d4ef95acdf03f995dae8eeb4d869626d236b5176d25fab9affb1f879231f2a1f1ab48338537e1a927e2640d74b3faa6c86c05e6dedecf0b6bff1bf9beb2
7
+ data.tar.gz: 9065cd2283a749759a757209ece3ddb494030a1142fe413942dab630bec235541b7a35c274aae98aa1551e190785e7fd8a8417949854a9cc54883627e15215dd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tiltify (0.1.1)
4
+ tiltify (0.1.2)
5
5
  faraday (~> 2.0)
6
6
 
7
7
  GEM
@@ -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,12 @@
1
1
  module Tiltify
2
2
  class Donation < Object
3
+
4
+ def initialize(options = {})
5
+ super options
6
+
7
+ self.created_at = Time.at(options["completedAt"].to_s[0..-4].to_i)
8
+ self.updated_at = Time.at(options["updatedAt"].to_s[0..-4].to_i)
9
+ end
10
+
3
11
  end
4
12
  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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tiltify
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiltify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Perry