Class: Pokepay::Response::Campaign
- Inherits:
-
Object
- Object
- Pokepay::Response::Campaign
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/campaign.rb
Instance Attribute Summary collapse
-
#applicable_shops ⇒ Object
readonly
Returns the value of attribute applicable_shops.
-
#bear_point_shop ⇒ Object
readonly
Returns the value of attribute bear_point_shop.
-
#budget_caps_amount ⇒ Object
readonly
Returns the value of attribute budget_caps_amount.
-
#budget_current_amount ⇒ Object
readonly
Returns the value of attribute budget_current_amount.
-
#budget_current_time ⇒ Object
readonly
Returns the value of attribute budget_current_time.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#dest_private_money ⇒ Object
readonly
Returns the value of attribute dest_private_money.
-
#ends_at ⇒ Object
readonly
Returns the value of attribute ends_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#is_exclusive ⇒ Object
readonly
Returns the value of attribute is_exclusive.
-
#max_total_point_amount ⇒ Object
readonly
Returns the value of attribute max_total_point_amount.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#point_calculation_rule ⇒ Object
readonly
Returns the value of attribute point_calculation_rule.
-
#point_calculation_rule_object ⇒ Object
readonly
Returns the value of attribute point_calculation_rule_object.
-
#point_expires_at ⇒ Object
readonly
Returns the value of attribute point_expires_at.
-
#point_expires_in_days ⇒ Object
readonly
Returns the value of attribute point_expires_in_days.
-
#priority ⇒ Object
readonly
Returns the value of attribute priority.
-
#private_money ⇒ Object
readonly
Returns the value of attribute private_money.
-
#starts_at ⇒ Object
readonly
Returns the value of attribute starts_at.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(row) ⇒ Campaign
constructor
A new instance of Campaign.
Constructor Details
#initialize(row) ⇒ Campaign
Returns a new instance of Campaign.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 9 def initialize(row) @id = row["id"] @name = row["name"] @applicable_shops = row["applicable_shops"] @is_exclusive = row["is_exclusive"] @starts_at = row["starts_at"] @ends_at = row["ends_at"] @point_expires_at = row["point_expires_at"] @point_expires_in_days = row["point_expires_in_days"] @priority = row["priority"] @description = row["description"] @bear_point_shop = User.new(row["bear_point_shop"]) @private_money = PrivateMoney.new(row["private_money"]) @dest_private_money = PrivateMoney.new(row["dest_private_money"]) @max_total_point_amount = row["max_total_point_amount"] @point_calculation_rule = row["point_calculation_rule"] @point_calculation_rule_object = row["point_calculation_rule_object"] @status = row["status"] @budget_caps_amount = row["budget_caps_amount"] @budget_current_amount = row["budget_current_amount"] @budget_current_time = row["budget_current_time"] end |
Instance Attribute Details
#applicable_shops ⇒ Object (readonly)
Returns the value of attribute applicable_shops.
33 34 35 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 33 def applicable_shops @applicable_shops end |
#bear_point_shop ⇒ Object (readonly)
Returns the value of attribute bear_point_shop.
41 42 43 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 41 def bear_point_shop @bear_point_shop end |
#budget_caps_amount ⇒ Object (readonly)
Returns the value of attribute budget_caps_amount.
48 49 50 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 48 def budget_caps_amount @budget_caps_amount end |
#budget_current_amount ⇒ Object (readonly)
Returns the value of attribute budget_current_amount.
49 50 51 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 49 def budget_current_amount @budget_current_amount end |
#budget_current_time ⇒ Object (readonly)
Returns the value of attribute budget_current_time.
50 51 52 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 50 def budget_current_time @budget_current_time end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
40 41 42 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 40 def description @description end |
#dest_private_money ⇒ Object (readonly)
Returns the value of attribute dest_private_money.
43 44 45 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 43 def dest_private_money @dest_private_money end |
#ends_at ⇒ Object (readonly)
Returns the value of attribute ends_at.
36 37 38 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 36 def ends_at @ends_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
31 32 33 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 31 def id @id end |
#is_exclusive ⇒ Object (readonly)
Returns the value of attribute is_exclusive.
34 35 36 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 34 def is_exclusive @is_exclusive end |
#max_total_point_amount ⇒ Object (readonly)
Returns the value of attribute max_total_point_amount.
44 45 46 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 44 def max_total_point_amount @max_total_point_amount end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
32 33 34 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 32 def name @name end |
#point_calculation_rule ⇒ Object (readonly)
Returns the value of attribute point_calculation_rule.
45 46 47 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 45 def point_calculation_rule @point_calculation_rule end |
#point_calculation_rule_object ⇒ Object (readonly)
Returns the value of attribute point_calculation_rule_object.
46 47 48 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 46 def point_calculation_rule_object @point_calculation_rule_object end |
#point_expires_at ⇒ Object (readonly)
Returns the value of attribute point_expires_at.
37 38 39 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 37 def point_expires_at @point_expires_at end |
#point_expires_in_days ⇒ Object (readonly)
Returns the value of attribute point_expires_in_days.
38 39 40 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 38 def point_expires_in_days @point_expires_in_days end |
#priority ⇒ Object (readonly)
Returns the value of attribute priority.
39 40 41 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 39 def priority @priority end |
#private_money ⇒ Object (readonly)
Returns the value of attribute private_money.
42 43 44 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 42 def private_money @private_money end |
#starts_at ⇒ Object (readonly)
Returns the value of attribute starts_at.
35 36 37 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 35 def starts_at @starts_at end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
47 48 49 |
# File 'lib/pokepay_partner_ruby_sdk/response/campaign.rb', line 47 def status @status end |