Sha256: 8dd55769acdb81cd3e18e4206f5ecd55136864f06178290dc1b3c5915e144a3c

Contents?: true

Size: 445 Bytes

Versions: 14

Compression:

Stored size: 445 Bytes

Contents

require "fog/core/collection"
require "fog/google/models/sql/tier"

module Fog
  module Google
    class SQL
      class Tiers < Fog::Collection
        model Fog::Google::SQL::Tier

        ##
        # Lists all available service tiers
        #
        # @return [Array<Fog::Google::SQL::Tier>] List of tiers
        def all
          data = service.list_tiers.body["items"] || []
          load(data)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 lib/fog/google/models/sql/tiers.rb
fog-google-0.5.5 lib/fog/google/models/sql/tiers.rb
fog-google-0.5.4 lib/fog/google/models/sql/tiers.rb
fog-google-0.5.3 lib/fog/google/models/sql/tiers.rb
fog-google-0.5.2 lib/fog/google/models/sql/tiers.rb
fog-google-0.5.1 lib/fog/google/models/sql/tiers.rb
fog-google-0.5.0 lib/fog/google/models/sql/tiers.rb
fog-google-0.4.2 lib/fog/google/models/sql/tiers.rb
fog-google-0.4.1 lib/fog/google/models/sql/tiers.rb
fog-google-0.4.0 lib/fog/google/models/sql/tiers.rb
fog-google-0.3.2 lib/fog/google/models/sql/tiers.rb
fog-google-0.3.1 lib/fog/google/models/sql/tiers.rb
fog-google-0.3.0 lib/fog/google/models/sql/tiers.rb
fog-google-0.2.0 lib/fog/google/models/sql/tiers.rb