Sha256: 777455525212836b9b20089ced614e451b611916718a55558988b5502237b959

Contents?: true

Size: 467 Bytes

Versions: 2

Compression:

Stored size: 467 Bytes

Contents

require_relative 'vpn'

module Fog
  module Compute
    class OneAndOne
      class Vpns < Fog::Collection
        model Fog::Compute::OneAndOne::Vpn

        def all
          response = service.list_vpns
          load(response.body)
        end

        def get(id)
          response = service.get_vpn(id)
          new(response.body)
        rescue Excon::Errors::NotFound
          nil
        end

      end # Vpns
    end # OneAndOne
  end # Compute
end # Fog

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-oneandone-1.2 lib/oneandone/models/compute/vpns.rb
fog-oneandone-1.0 lib/oneandone/models/compute/vpns.rb