Class: Peddler::Reports::VendorCoupon::CouponDetails
- Inherits:
-
Data
- Object
- Data
- Peddler::Reports::VendorCoupon::CouponDetails
- Defined in:
- sig/peddler/reports/vendor_coupon.rbs
Instance Attribute Summary collapse
-
#asins ⇒ Array[Peddler::Reports::VendorCoupon::ASINDetails]
readonly
Returns the value of attribute asins.
-
#budget ⇒ Float?
readonly
Returns the value of attribute budget.
-
#budget_percentage_used ⇒ Float
readonly
Returns the value of attribute budget_percentage_used.
-
#budget_remaining ⇒ Float?
readonly
Returns the value of attribute budget_remaining.
-
#budget_spent ⇒ Float
readonly
Returns the value of attribute budget_spent.
-
#clips ⇒ Integer
readonly
Returns the value of attribute clips.
-
#coupon_id ⇒ String
readonly
Returns the value of attribute coupon_id.
-
#customer_segment ⇒ String
readonly
Returns the value of attribute customer_segment.
-
#end_date_time ⇒ Time
readonly
Returns the value of attribute end_date_time.
-
#name ⇒ String?
readonly
Returns the value of attribute name.
-
#once_per_customer ⇒ Boolean
readonly
Returns the value of attribute once_per_customer.
-
#redemptions ⇒ Integer
readonly
Returns the value of attribute redemptions.
-
#start_date_time ⇒ Time
readonly
Returns the value of attribute start_date_time.
-
#total_discount ⇒ Float
readonly
Returns the value of attribute total_discount.
-
#website_message ⇒ String?
readonly
Returns the value of attribute website_message.
Class Method Summary collapse
-
.[] ⇒ Object
-
.members ⇒ [ :asins, :budget_percentage_used, :budget_spent, :clips, :coupon_id, :customer_segment, :end_date_time, :once_per_customer, :redemptions, :start_date_time, :total_discount, :budget, :budget_remaining, :name, :website_message ]
-
.new ⇒ Object
-
.parse ⇒ Peddler::Reports::VendorCoupon::CouponDetails
Instance Method Summary collapse
-
#members ⇒ [ :asins, :budget_percentage_used, :budget_spent, :clips, :coupon_id, :customer_segment, :end_date_time, :once_per_customer, :redemptions, :start_date_time, :total_discount, :budget, :budget_remaining, :name, :website_message ]
-
#once_per_customer? ⇒ Boolean
-
#to_h ⇒ { asins: Array[Peddler::Reports::VendorCoupon::ASINDetails], budget_percentage_used: Float, budget_spent: Float, clips: Integer, coupon_id: String, customer_segment: String, end_date_time: Time, once_per_customer: bool, redemptions: Integer, start_date_time: Time, total_discount: Float, budget: Float?, budget_remaining: Float?, name: String?, website_message: String? }
Instance Attribute Details
#asins ⇒ Array[Peddler::Reports::VendorCoupon::ASINDetails] (readonly)
Returns the value of attribute asins.
32 33 34 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 32 def asins @asins end |
#budget ⇒ Float? (readonly)
Returns the value of attribute budget.
33 34 35 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 33 def budget @budget end |
#budget_percentage_used ⇒ Float (readonly)
Returns the value of attribute budget_percentage_used.
34 35 36 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 34 def budget_percentage_used @budget_percentage_used end |
#budget_remaining ⇒ Float? (readonly)
Returns the value of attribute budget_remaining.
35 36 37 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 35 def budget_remaining @budget_remaining end |
#budget_spent ⇒ Float (readonly)
Returns the value of attribute budget_spent.
36 37 38 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 36 def budget_spent @budget_spent end |
#clips ⇒ Integer (readonly)
Returns the value of attribute clips.
37 38 39 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 37 def clips @clips end |
#coupon_id ⇒ String (readonly)
Returns the value of attribute coupon_id.
38 39 40 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 38 def coupon_id @coupon_id end |
#customer_segment ⇒ String (readonly)
Returns the value of attribute customer_segment.
39 40 41 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 39 def customer_segment @customer_segment end |
#end_date_time ⇒ Time (readonly)
Returns the value of attribute end_date_time.
40 41 42 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 40 def end_date_time @end_date_time end |
#name ⇒ String? (readonly)
Returns the value of attribute name.
41 42 43 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 41 def name @name end |
#once_per_customer ⇒ Boolean (readonly)
Returns the value of attribute once_per_customer.
42 43 44 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 42 def once_per_customer @once_per_customer end |
#redemptions ⇒ Integer (readonly)
Returns the value of attribute redemptions.
43 44 45 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 43 def redemptions @redemptions end |
#start_date_time ⇒ Time (readonly)
Returns the value of attribute start_date_time.
44 45 46 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 44 def start_date_time @start_date_time end |
#total_discount ⇒ Float (readonly)
Returns the value of attribute total_discount.
45 46 47 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 45 def total_discount @total_discount end |
#website_message ⇒ String? (readonly)
Returns the value of attribute website_message.
46 47 48 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 46 def @website_message end |
Class Method Details
.[](asins:, budget_percentage_used:, budget_spent:, clips:, coupon_id:, customer_segment:, end_date_time:, once_per_customer:, redemptions:, start_date_time:, total_discount:, budget:, budget_remaining:, name:, website_message:) ⇒ Peddler::Reports::VendorCoupon::CouponDetails .[](arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) ⇒ Peddler::Reports::VendorCoupon::CouponDetails
25 26 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 25
def self.[]: (asins: Array[Peddler::Reports::VendorCoupon::ASINDetails], budget_percentage_used: Float, budget_spent: Float, clips: Integer, coupon_id: String, customer_segment: String, end_date_time: Time, once_per_customer: bool, redemptions: Integer, start_date_time: Time, total_discount: Float, ?budget: Float?, ?budget_remaining: Float?, ?name: String?, ?website_message: String?) -> Peddler::Reports::VendorCoupon::CouponDetails
| (Array[Peddler::Reports::VendorCoupon::ASINDetails], Float, Float, Integer, String, String, Time, bool, Integer, Time, Float, Float?, Float?, String?, String?) -> Peddler::Reports::VendorCoupon::CouponDetails
|
.members ⇒ [ :asins, :budget_percentage_used, :budget_spent, :clips, :coupon_id, :customer_segment, :end_date_time, :once_per_customer, :redemptions, :start_date_time, :total_discount, :budget, :budget_remaining, :name, :website_message ]
28 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 28
def self.members: () -> [ :asins, :budget_percentage_used, :budget_spent, :clips, :coupon_id, :customer_segment, :end_date_time, :once_per_customer, :redemptions, :start_date_time, :total_discount, :budget, :budget_remaining, :name, :website_message ]
|
.new(asins:, budget_percentage_used:, budget_spent:, clips:, coupon_id:, customer_segment:, end_date_time:, once_per_customer:, redemptions:, start_date_time:, total_discount:, budget:, budget_remaining:, name:, website_message:) ⇒ Peddler::Reports::VendorCoupon::CouponDetails .new(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) ⇒ Peddler::Reports::VendorCoupon::CouponDetails
23 24 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 23
def self.new: (asins: Array[Peddler::Reports::VendorCoupon::ASINDetails], budget_percentage_used: Float, budget_spent: Float, clips: Integer, coupon_id: String, customer_segment: String, end_date_time: Time, once_per_customer: bool, redemptions: Integer, start_date_time: Time, total_discount: Float, ?budget: Float?, ?budget_remaining: Float?, ?name: String?, ?website_message: String?) -> Peddler::Reports::VendorCoupon::CouponDetails
| (Array[Peddler::Reports::VendorCoupon::ASINDetails], Float, Float, Integer, String, String, Time, bool, Integer, Time, Float, Float?, Float?, String?, String?) -> Peddler::Reports::VendorCoupon::CouponDetails
|
.parse ⇒ Peddler::Reports::VendorCoupon::CouponDetails
30 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 30
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Reports::VendorCoupon::CouponDetails
|
Instance Method Details
#members ⇒ [ :asins, :budget_percentage_used, :budget_spent, :clips, :coupon_id, :customer_segment, :end_date_time, :once_per_customer, :redemptions, :start_date_time, :total_discount, :budget, :budget_remaining, :name, :website_message ]
48 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 48
def members: () -> [ :asins, :budget_percentage_used, :budget_spent, :clips, :coupon_id, :customer_segment, :end_date_time, :once_per_customer, :redemptions, :start_date_time, :total_discount, :budget, :budget_remaining, :name, :website_message ]
|
#once_per_customer? ⇒ Boolean
49 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 49
def once_per_customer?: () -> bool
|
#to_h ⇒ { asins: Array[Peddler::Reports::VendorCoupon::ASINDetails], budget_percentage_used: Float, budget_spent: Float, clips: Integer, coupon_id: String, customer_segment: String, end_date_time: Time, once_per_customer: bool, redemptions: Integer, start_date_time: Time, total_discount: Float, budget: Float?, budget_remaining: Float?, name: String?, website_message: String? }
50 |
# File 'sig/peddler/reports/vendor_coupon.rbs', line 50
def to_h: () -> { asins: Array[Peddler::Reports::VendorCoupon::ASINDetails], budget_percentage_used: Float, budget_spent: Float, clips: Integer, coupon_id: String, customer_segment: String, end_date_time: Time, once_per_customer: bool, redemptions: Integer, start_date_time: Time, total_discount: Float, budget: Float?, budget_remaining: Float?, name: String?, website_message: String? }
|