Class: Filemaker::Model::Relations::BelongsTo
- Defined in:
- lib/filemaker/model/relations/belongs_to.rb
Instance Attribute Summary
Attributes inherited from Proxy
Instance Method Summary collapse
-
#initialize(owner, name, options) ⇒ BelongsTo
constructor
A new instance of BelongsTo.
- #reference_key ⇒ Object
Methods inherited from Proxy
#method_missing, #target_class
Constructor Details
#initialize(owner, name, options) ⇒ BelongsTo
7 8 9 10 |
# File 'lib/filemaker/model/relations/belongs_to.rb', line 7 def initialize(owner, name, ) super(owner, name, ) build_target end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Filemaker::Model::Relations::Proxy
Instance Method Details
#reference_key ⇒ Object
12 13 14 |
# File 'lib/filemaker/model/relations/belongs_to.rb', line 12 def reference_key .fetch(:reference_key) { "#{@name}_id" } end |