Class: Ivy::Serializers::Relationships::BelongsTo
- Inherits:
-
Relationship
- Object
- Relationship
- Ivy::Serializers::Relationships::BelongsTo
- Defined in:
- lib/ivy/serializers/relationships/belongs_to.rb
Instance Method Summary collapse
Methods inherited from Relationship
Constructor Details
This class inherits a constructor from Ivy::Serializers::Relationships::Relationship
Instance Method Details
#generate(generator, resource) ⇒ Object
7 8 9 |
# File 'lib/ivy/serializers/relationships/belongs_to.rb', line 7 def generate(generator, resource) generator.belongs_to(@name, get(resource), @options) end |