Sha256: 02b58b26ad12fbe7aada4b7e4ef5cd0b8c743068fbc271c239eb438cbfaad180

Contents?: true

Size: 426 Bytes

Versions: 49

Compression:

Stored size: 426 Bytes

Contents

module Fog
  module Attributes
    # = Fog Integer Attribute
    #
    # This class handles Integer attributes from the providers,
    # converting values to Integer objects
    class Integer < Default
      def create_setter
        model.class_eval <<-EOS, __FILE__, __LINE__
            def #{name}=(new_#{name})
              attributes[:#{name}] = new_#{name}.to_i
            end
        EOS
      end
    end
  end
end

Version data entries

49 entries across 46 versions & 3 rubygems

Version Path
fog-core-1.44.1 lib/fog/core/attributes/integer.rb
fog-core-1.44.0 lib/fog/core/attributes/integer.rb
fog-core-1.43.0 lib/fog/core/attributes/integer.rb
fog-core-1.42.0 lib/fog/core/attributes/integer.rb
fog-core-1.41.0 lib/fog/core/attributes/integer.rb
fog-core-1.40.1 lib/fog/core/attributes/integer.rb
fog-core-1.40.0 lib/fog/core/attributes/integer.rb
fog-core-1.39.0 lib/fog/core/attributes/integer.rb
fog-core-1.38.0 lib/fog/core/attributes/integer.rb
fog-core-1.37.0 lib/fog/core/attributes/integer.rb
fog-core-1.36.0 lib/fog/core/attributes/integer.rb
fog-core-1.35.0 lib/fog/core/attributes/integer.rb
fog-core-1.34.0 lib/fog/core/attributes/integer.rb
fog-core-1.33.0 lib/fog/core/attributes/integer.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-core-1.32.1/lib/fog/core/attributes/integer.rb
fog-core-1.32.1 lib/fog/core/attributes/integer.rb
fog-core-1.32.0 lib/fog/core/attributes/integer.rb
fog-core-1.31.1 lib/fog/core/attributes/integer.rb
fog-core-1.31.0 lib/fog/core/attributes/integer.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-core-1.30.0/lib/fog/core/attributes/integer.rb