Class: Customer::PreferredPayment

Inherits:
Data
  • Object
show all
Defined in:
app/models/customer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#categoryObject (readonly)

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



216
217
218
# File 'app/models/customer.rb', line 216

def category
  @category
end

#countObject (readonly)

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



216
217
218
# File 'app/models/customer.rb', line 216

def count
  @count
end

#detailObject (readonly)

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



216
217
218
# File 'app/models/customer.rb', line 216

def detail
  @detail
end

#total_ordersObject (readonly)

Returns the value of attribute total_orders

Returns:

  • (Object)

    the current value of total_orders



216
217
218
# File 'app/models/customer.rb', line 216

def total_orders
  @total_orders
end