Sha256: 0b38abd143f0216da17cd5bd696e302ae1fa75b5aaa21ad4aad8f5c095424384

Contents?: true

Size: 281 Bytes

Versions: 2

Compression:

Stored size: 281 Bytes

Contents

module Fog
  module Attributes
    class String < Default
      def create_setter
        model.class_eval <<-EOS, __FILE__, __LINE__
            def #{name}=(new_#{name})
              attributes[:#{name}] = new_#{name}.to_s
            end
        EOS
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-core-1.24.0 lib/fog/core/attributes/string.rb
fog-core-1.23.0 lib/fog/core/attributes/string.rb