Class: NestedRecord::Setup::HasOne

Inherits:
NestedRecord::Setup show all
Defined in:
lib/nested_record/setup.rb

Instance Method Summary collapse

Methods inherited from NestedRecord::Setup

#initialize, #record_class

Constructor Details

This class inherits a constructor from NestedRecord::Setup

Instance Method Details

#define_methodsObject



148
149
150
151
152
153
154
# File 'lib/nested_record/setup.rb', line 148

def define_methods
  define_writer_method
  define_build_method
  define_attributes_writer_method
  define_validation_method
  define_bang_method
end

#typeObject



156
157
158
# File 'lib/nested_record/setup.rb', line 156

def type
  @type ||= NestedRecord::Type::HasOne.new(self)
end