Class: TalonOne::Integration::ReferralCode
- Inherits:
-
Object
- Object
- TalonOne::Integration::ReferralCode
- Defined in:
- lib/integration/referral_code.rb
Instance Method Summary collapse
- #advocate_id ⇒ Object
- #campaign_id ⇒ Object
- #code ⇒ Object
- #created ⇒ Object
- #expiry_date ⇒ Object
- #friend_id ⇒ Object
- #id ⇒ Object
-
#initialize(raw_data) ⇒ ReferralCode
constructor
A new instance of ReferralCode.
- #start_date ⇒ Object
- #usage_count ⇒ Object
- #usage_limit ⇒ Object
Constructor Details
#initialize(raw_data) ⇒ ReferralCode
Returns a new instance of ReferralCode.
4 5 6 |
# File 'lib/integration/referral_code.rb', line 4 def initialize(raw_data) @raw = raw_data end |
Instance Method Details
#advocate_id ⇒ Object
20 21 22 |
# File 'lib/integration/referral_code.rb', line 20 def advocate_id @raw["advocateProfileIntegrationId"] end |
#campaign_id ⇒ Object
12 13 14 |
# File 'lib/integration/referral_code.rb', line 12 def campaign_id @raw["campaignId"] end |
#code ⇒ Object
24 25 26 |
# File 'lib/integration/referral_code.rb', line 24 def code @raw["code"] end |
#created ⇒ Object
16 17 18 |
# File 'lib/integration/referral_code.rb', line 16 def created @raw["created"] end |
#expiry_date ⇒ Object
36 37 38 |
# File 'lib/integration/referral_code.rb', line 36 def expiry_date @raw["expiryDate"] end |
#friend_id ⇒ Object
28 29 30 |
# File 'lib/integration/referral_code.rb', line 28 def friend_id @raw["friendProfileIntegrationId"] end |
#id ⇒ Object
8 9 10 |
# File 'lib/integration/referral_code.rb', line 8 def id @raw["id"] end |
#start_date ⇒ Object
32 33 34 |
# File 'lib/integration/referral_code.rb', line 32 def start_date @raw["startDate"] end |
#usage_count ⇒ Object
40 41 42 |
# File 'lib/integration/referral_code.rb', line 40 def usage_count @raw["usageCount"] end |
#usage_limit ⇒ Object
44 45 46 |
# File 'lib/integration/referral_code.rb', line 44 def usage_limit @raw["usageLimit"] end |