class Segurocomar::Entity::Car

Public Class Methods

attr_list() click to toggle source
# File lib/segurocomar/entity/car.rb, line 4
def self.attr_list
  [:id, :car_brand_code, :name]
end
new(attributes={}) click to toggle source
# File lib/segurocomar/entity/car.rb, line 10
def initialize(attributes={})
  attributes.each do |k, v|
    self.send("#{k}=", v) if self.respond_to?(k)
  end
end