Method: Masamune::Schema::Row#initialize
- Defined in:
- lib/masamune/schema/row.rb
#initialize(opts = {}) ⇒ Row
Returns a new instance of Row.
41 42 43 44 45 46 47 48 |
# File 'lib/masamune/schema/row.rb', line 41 def initialize(opts = {}) @errors = Set.new opts.symbolize_keys! DEFAULT_ATTRIBUTES.merge(opts).each do |name, value| public_send("#{name}=", value) end self.id ||= :default if default end |