Class: Vericred::Relationships::HasMany
- Defined in:
- lib/vericred/api_resource/relationships/has_many.rb
Instance Method Summary collapse
Methods inherited from Base
#initialize, #owned_klass, #plural?, #root_name
Constructor Details
This class inherits a constructor from Vericred::Relationships::Base
Instance Method Details
#foreign_key ⇒ Object
4 5 6 |
# File 'lib/vericred/api_resource/relationships/has_many.rb', line 4 def foreign_key "#{root_name.singularize}_ids" end |
#singular? ⇒ Boolean
8 9 10 |
# File 'lib/vericred/api_resource/relationships/has_many.rb', line 8 def singular? false end |