Class: Pokepay::Response::Campaign

Inherits:
Object
  • Object
show all
Defined in:
lib/pokepay_partner_ruby_sdk/response/campaign.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_shopsObject (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_shopObject (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_amountObject (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_amountObject (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_timeObject (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

#descriptionObject (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_moneyObject (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_atObject (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

#idObject (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_exclusiveObject (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_amountObject (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

#nameObject (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_ruleObject (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_objectObject (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_atObject (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_daysObject (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

#priorityObject (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_moneyObject (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_atObject (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

#statusObject (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