Class: Customer::PreferredPayment
- Inherits:
-
Data
- Object
- Data
- Customer::PreferredPayment
- Defined in:
- app/models/customer.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#total_orders ⇒ Object
readonly
Returns the value of attribute total_orders.
Instance Method Summary collapse
-
#initialize(category: nil, count: 0, total_orders: 0, detail: nil) ⇒ PreferredPayment
constructor
A new instance of PreferredPayment.
Constructor Details
#initialize(category: nil, count: 0, total_orders: 0, detail: nil) ⇒ PreferredPayment
Returns a new instance of PreferredPayment.
217 |
# File 'app/models/customer.rb', line 217 def initialize(category: nil, count: 0, total_orders: 0, detail: nil) = super |
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category
216 217 218 |
# File 'app/models/customer.rb', line 216 def category @category end |
#count ⇒ Object (readonly)
Returns the value of attribute count
216 217 218 |
# File 'app/models/customer.rb', line 216 def count @count end |
#detail ⇒ Object (readonly)
Returns the value of attribute detail
216 217 218 |
# File 'app/models/customer.rb', line 216 def detail @detail end |
#total_orders ⇒ Object (readonly)
Returns the value of attribute total_orders
216 217 218 |
# File 'app/models/customer.rb', line 216 def total_orders @total_orders end |