Sha256: 042be83b844b36da11f61b75e03ad86442e4b2586314da59183875bb4eb228b2

Contents?: true

Size: 293 Bytes

Versions: 4

Compression:

Stored size: 293 Bytes

Contents

require 'ivy/serializers/relationships/relationship'

module Ivy
  module Serializers
    module Relationships
      class BelongsTo < Relationship
        def generate(generator, resource)
          generator.belongs_to(@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/belongs_to.rb
ivy-serializers-0.3.0 lib/ivy/serializers/relationships/belongs_to.rb
ivy-serializers-0.2.0 lib/ivy/serializers/relationships/belongs_to.rb
ivy-serializers-0.1.0 lib/ivy/serializers/relationships/belongs_to.rb