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



143
144
145
146
147
148
149
# File 'lib/nested_record/setup.rb', line 143

def define_methods
  define_writer_method
  define_build_method
  define_attributes_writer_method
  define_validation_method
  define_bang_method
end

#typeObject



151
152
153
# File 'lib/nested_record/setup.rb', line 151

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