module TescoRb::RepresentationHelper

Public Instance Methods

set(attributes, hash) click to toggle source
# File lib/tesco_rb/representation_helper.rb, line 3
def set(attributes, hash)
  Array.new(attributes).each do |attribute|
    instance_variable_set("@#{attribute}", hash[attribute.to_s])
  end
end