Sha256: a5761863939d4d24f7f078ac9df3f1d2ad5de8e46fc1fdf3e1cf216701046148
Contents?: true
Size: 297 Bytes
Versions: 1
Compression:
Stored size: 297 Bytes
Contents
module Yaks class Mapper class Attribute include Attributes.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yaks-0.7.7 | lib/yaks/mapper/attribute.rb |