Class: Ivy::Serializers::Relationships::HasMany

Inherits:
Relationship
  • Object
show all
Defined in:
lib/ivy/serializers/relationships/has_many.rb

Instance Method Summary collapse

Methods inherited from Relationship

#initialize

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/has_many.rb', line 7

def generate(generator, resource)
  generator.has_many(@name, get(resource), @options)
end