mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
7 lines
180 B
Ruby
7 lines
180 B
Ruby
class Contact
|
|
attr_accessor :name, :age, :created_at, :awesome, :preferences
|
|
|
|
def initialize(options = {})
|
|
options.each { |name, value| send("#{name}=", value) }
|
|
end
|
|
end
|