Sha256: bcef3cd9c16ebeef4687d94792fc180fb8a45034a009cc06bc55170169e94b08

Contents?: true

Size: 341 Bytes

Versions: 46

Compression:

Stored size: 341 Bytes

Contents

module Fog
  class Vcloud < Fog::Service
    class Model < Fog::Model

      attr_accessor :loaded
      alias_method :loaded?, :loaded

      def reload
        instance = super
        @loaded = true
        instance
      end

      def load_unless_loaded!
        unless @loaded
          reload
        end
      end

    end
  end
end

Version data entries

46 entries across 46 versions & 3 rubygems

Version Path
fog-0.5.3 lib/fog/vcloud/model.rb
fog-0.5.2 lib/fog/vcloud/model.rb
fog-0.5.1 lib/fog/vcloud/model.rb
fog-0.5.0 lib/fog/vcloud/model.rb
phpfog-fog-0.4.1.3 lib/fog/vcloud/model.rb
phpfog-fog-0.4.1.2 lib/fog/vcloud/model.rb
phpfog-fog-0.4.1.1 lib/fog/vcloud/model.rb
phpfog-fog-0.4.1 lib/fog/vcloud/model.rb
fog-0.4.1 lib/fog/vcloud/model.rb
fog-0.4.0 lib/fog/vcloud/model.rb
fog-0.3.34 lib/fog/vcloud/model.rb
fog-0.3.33 lib/fog/vcloud/model.rb
fog-0.3.32 lib/fog/vcloud/model.rb
fog-0.3.31 lib/fog/vcloud/model.rb
fog-0.3.30 lib/fog/vcloud/model.rb
fog-0.3.29 lib/fog/vcloud/model.rb
fog-0.3.28 lib/fog/vcloud/model.rb
fog-0.3.27 lib/fog/vcloud/model.rb
fog-0.3.26 lib/fog/vcloud/model.rb
fog-0.3.25 lib/fog/vcloud/model.rb