Class: DataMapper::Reflection::Builders::Source::OneToOne
- Inherits:
-
Relationship
- Object
- Relationship
- DataMapper::Reflection::Builders::Source::OneToOne
- Defined in:
- lib/dm-reflection/builders/source_builder.rb
Instance Attribute Summary
Attributes inherited from Relationship
Instance Method Summary collapse
Methods inherited from Relationship
for, #irrelevant_options, #max, #min, #name, #option_priorities, #prioritized_options, #to_ruby
Methods included from OptionBuilder
#backend_options, #irrelevant_options, #option_priorities, #options, #prioritized_options, #rest_options
Instance Method Details
#cardinality ⇒ Object
293 294 295 |
# File 'lib/dm-reflection/builders/source_builder.rb', line 293 def cardinality min == 1 && max == 1 ? '1' : super end |
#type ⇒ Object
290 291 292 |
# File 'lib/dm-reflection/builders/source_builder.rb', line 290 def type :has end |