Sha256: 75fbb708dde0628ff91fccadae580e787417fc9c4418fea22369f0129638dc53

Contents?: true

Size: 228 Bytes

Versions: 46

Compression:

Stored size: 228 Bytes

Contents

class Gillbus
  module UpdateAttrs
    def initialize(attrs = {})
      update_attrs attrs if attrs
    end

    def update_attrs(attrs = {})
      attrs.each do |k, v|
        public_send "#{k}=", v
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
gillbus-0.23.0 lib/gillbus/helpers/update_attrs.rb
gillbus-0.22.9 lib/gillbus/helpers/update_attrs.rb
gillbus-0.22.8 lib/gillbus/helpers/update_attrs.rb
gillbus-0.22.7 lib/gillbus/helpers/update_attrs.rb
gillbus-0.22.6 lib/gillbus/helpers/update_attrs.rb
gillbus-0.22.5 lib/gillbus/helpers/update_attrs.rb
gillbus-0.22.4 lib/gillbus/helpers/update_attrs.rb
gillbus-0.22.3 lib/gillbus/helpers/update_attrs.rb
gillbus-0.22.2 lib/gillbus/helpers/update_attrs.rb
gillbus-0.22.1 lib/gillbus/helpers/update_attrs.rb
gillbus-0.22.0 lib/gillbus/helpers/update_attrs.rb
gillbus-0.21.0 lib/gillbus/helpers/update_attrs.rb
gillbus-0.20.9 lib/gillbus/helpers/update_attrs.rb
gillbus-0.20.8 lib/gillbus/helpers/update_attrs.rb
gillbus-0.20.7 lib/gillbus/helpers/update_attrs.rb
gillbus-0.20.6 lib/gillbus/helpers/update_attrs.rb
gillbus-0.20.5 lib/gillbus/helpers/update_attrs.rb
gillbus-0.20.4 lib/gillbus/helpers/update_attrs.rb
gillbus-0.20.3 lib/gillbus/helpers/update_attrs.rb
gillbus-0.20.2 lib/gillbus/helpers/update_attrs.rb