Class: DataMapper::Reflection::Builders::Source::ManyToOne
- Inherits:
-
Relationship
- Object
- Relationship
- DataMapper::Reflection::Builders::Source::ManyToOne
show all
- Defined in:
- lib/dm-reflection/builders/source_builder.rb
Instance Attribute Summary
Attributes inherited from Relationship
#backend
Instance Method Summary
collapse
for, #irrelevant_options, #max, #min, #name, #option_priorities, #prioritized_options
#backend_options, #irrelevant_options, #option_priorities, #options, #prioritized_options, #rest_options
Instance Method Details
#cardinality ⇒ Object
284
285
286
|
# File 'lib/dm-reflection/builders/source_builder.rb', line 284
def cardinality
''
end
|
#to_ruby ⇒ Object
278
279
280
|
# File 'lib/dm-reflection/builders/source_builder.rb', line 278
def to_ruby
"#{type} :#{name}#{options}"
end
|
#type ⇒ Object
281
282
283
|
# File 'lib/dm-reflection/builders/source_builder.rb', line 281
def type
:belongs_to
end
|