Class List Method List File List

# Class: Vertx::SocketAddress

Inherits:
  Object
  - Object
  - Vertx::SocketAddress
  show all
Defined in:
  /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/socket_address.rb

## Overview

The address of a socket

## Instance Method Summary (collapse)

- - (String) host
- - (Fixnum) port

## Instance Method Details

### - (`String`) host

Returns:

- (`String`)

Raises:

- (`ArgumentError`)

    17
    18
    19
    20
    21
    22
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/socket_address.rb', line 17

    def host
      if !block_given?
        return @j_del.java_method(:host, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling host()"
    end

### - (`Fixnum`) port

Returns:

- (`Fixnum`)

Raises:

- (`ArgumentError`)

    24
    25
    26
    27
    28
    29
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/socket_address.rb', line 24

    def port
      if !block_given?
        return @j_del.java_method(:port, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling port()"
    end