Sha256: 23eecfdf01a72edcad5f168379c27236a2a05b8854bc39e61862dd25a63942b3
Contents?: true
Size: 390 Bytes
Versions: 1
Compression:
Stored size: 390 Bytes
Contents
module Husky module DataSource class InMemory attr_reader :attributes attr_accessor :id def initialize(attributes) @attributes = attributes end def update_attributes(attrs) @attributes.each do |key, value| if attrs.key?(key) @attributes[key] = attrs[key] end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
husky-0.1.8 | lib/husky/data_source.rb |