Sha256: cede588af3b67b5e3592b8d4c200948b59819bbf2a59482b76300c3e24c356ba

Contents?: true

Size: 302 Bytes

Versions: 10

Compression:

Stored size: 302 Bytes

Contents

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

      def initialize(name)
        @name = name
      end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
yaks-0.7.6 lib/yaks/mapper/attribute.rb
yaks-0.7.5 lib/yaks/mapper/attribute.rb
yaks-0.7.4 lib/yaks/mapper/attribute.rb
yaks-0.7.3 lib/yaks/mapper/attribute.rb
yaks-0.7.2 lib/yaks/mapper/attribute.rb
yaks-0.7.1 lib/yaks/mapper/attribute.rb
yaks-0.7.0 lib/yaks/mapper/attribute.rb
yaks-0.6.2 lib/yaks/mapper/attribute.rb
yaks-0.6.1 lib/yaks/mapper/attribute.rb
yaks-0.6.0 lib/yaks/mapper/attribute.rb