giftrocket_ruby 1.0.1 → 1.0.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 +4 -4
- data/lib/giftrocket/gift.rb +3 -1
- data/lib/giftrocket/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6968f6b994553f75584343174d2ceb7d0d26a12
|
|
4
|
+
data.tar.gz: 672dbb879af2c5012fc649950d221fbb76b5b196
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 130bb67acca0597487de8e73c2b90c5b0bb2c0a9470aaf78a2bdd2df826ca3690eef06fe612fa747c12a73ead2ed5abe3ca1c8ad9670194539df300081a915ed
|
|
7
|
+
data.tar.gz: 04f24652dd579d262af2b75843515482364453afcc77c7f947b3e2df3fed30445f2a70200371f25e0be78cf770158027c78f3a54965fbca5ec857cc03f963e1d
|
data/lib/giftrocket/gift.rb
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
module Giftrocket
|
|
2
2
|
class Gift
|
|
3
3
|
|
|
4
|
-
attr_accessor :id, :order_id, :amount, :message, :style_id, :status, :recipient, :sender, :events
|
|
4
|
+
attr_accessor :id, :order_id, :amount, :message, :style_id, :status, :recipient, :sender, :events, :redemption_methods, :raw
|
|
5
5
|
|
|
6
6
|
def initialize(attributes)
|
|
7
7
|
attributes = attributes.with_indifferent_access
|
|
8
|
+
self.raw = attributes
|
|
8
9
|
self.id = attributes[:id]
|
|
9
10
|
self.order_id = attributes[:order_id]
|
|
10
11
|
self.amount = attributes[:amount]
|
|
@@ -14,6 +15,7 @@ module Giftrocket
|
|
|
14
15
|
self.sender = attributes[:sender]
|
|
15
16
|
self.recipient = Giftrocket::User.new(attributes[:recipient])
|
|
16
17
|
self.events = attributes[:events]
|
|
18
|
+
self.redemption_methods = attributes[:redemption_methods]
|
|
17
19
|
end
|
|
18
20
|
|
|
19
21
|
def self.list(filters={})
|
data/lib/giftrocket/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: giftrocket_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GiftRocket
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-07-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
155
155
|
version: '0'
|
|
156
156
|
requirements: []
|
|
157
157
|
rubyforge_project:
|
|
158
|
-
rubygems_version: 2.
|
|
158
|
+
rubygems_version: 2.6.10
|
|
159
159
|
signing_key:
|
|
160
160
|
specification_version: 4
|
|
161
161
|
summary: GiftRocket Ruby API SDK
|