class Segurocomar::Entity::QuoteProduct
Public Class Methods
attr_list()
click to toggle source
# File lib/segurocomar/entity/quote_product.rb, line 4 def self.attr_list [:id, :product_id, :product_name, :insurer_id, :insurer_name, :price, :price_from, :hired, :available, :relative_quotient, :absolute_value, :original_price, :discount_rate] end
new(attributes={})
click to toggle source
# File lib/segurocomar/entity/quote_product.rb, line 12 def initialize(attributes={}) attributes.each do |k, v| self.send("#{k}=", v) if self.respond_to?(k) end end