Sha256: 9a6262cb92c035a833d118565c7cc6045a60e4b76ec2b6085dae01aef9128d44

Contents?: true

Size: 289 Bytes

Versions: 4

Compression:

Stored size: 289 Bytes

Contents

require 'ivy/serializers/relationships/relationship'

module Ivy
  module Serializers
    module Relationships
      class HasMany < Relationship
        def generate(generator, resource)
          generator.has_many(@name, get(resource), @options)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ivy-serializers-0.4.0 lib/ivy/serializers/relationships/has_many.rb
ivy-serializers-0.3.0 lib/ivy/serializers/relationships/has_many.rb
ivy-serializers-0.2.0 lib/ivy/serializers/relationships/has_many.rb
ivy-serializers-0.1.0 lib/ivy/serializers/relationships/has_many.rb