Sha256: ee4e4028e5cf303f1c3ba3a82bfe150e3b7c586d0757d39211aa5d9301d89f08

Contents?: true

Size: 301 Bytes

Versions: 8

Compression:

Stored size: 301 Bytes

Contents

module Yaks
  class Mapper
    class Attribute
      include Attributes.new(:name)

      def initialize(name)
        super(name: name)
      end

      def add_to_resource(resource, mapper, _context)
        resource.merge_attributes(name => mapper.load_attribute(name))
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
yaks-0.9.0 lib/yaks/mapper/attribute.rb
yaks-0.8.3 lib/yaks/mapper/attribute.rb
yaks-0.8.2 lib/yaks/mapper/attribute.rb
yaks-0.8.1 lib/yaks/mapper/attribute.rb
yaks-0.8.0 lib/yaks/mapper/attribute.rb
yaks-0.8.0.beta2 lib/yaks/mapper/attribute.rb
yaks-0.8.0.beta1 lib/yaks/mapper/attribute.rb
yaks-0.8.0.alpha lib/yaks/mapper/attribute.rb