Sha256: 773da8023dad6c93c33f1c211a06caffccaa33d2361aaeefb816f052698616a4

Contents?: true

Size: 329 Bytes

Versions: 3

Compression:

Stored size: 329 Bytes

Contents

module Squall
  # OnApp IpAddress
  class IpAddress < Base
    # Returns a list of IpAddresses
    #
    # ==== Options
    # * +network_id+ - required
    def list(network_id)
      response = request(:get, "/settings/networks/#{network_id}/ip_addresses.json")
      response.collect { |ip| ip['ip_address'] }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
squall-1.0.2 lib/squall/ip_address.rb
squall-1.0.1 lib/squall/ip_address.rb
squall-1.0.0 lib/squall/ip_address.rb