Class List Method List File List

# Class: Vertx::SocketAddress

Inherits:
  Object
  - Object
  - Vertx::SocketAddress
  show all
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/socket_address.rb

## Instance Method Summary (collapse)

- - (Object) host
- - (SocketAddress) initialize(j_del) constructor
  A new instance of SocketAddress.
- - (Object) j_del
- - (Object) port

## Constructor Details

### - (`SocketAddress`) initialize(j_del)

Returns a new instance of SocketAddress

    8
    9
    10
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/socket_address.rb', line 8

    def initialize(j_del)
      @j_del = j_del
    end

## Instance Method Details

### - (`Object`) host

Raises:

- (`ArgumentError`)

    17
    18
    19
    20
    21
    22
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/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

### - (`Object`) j_del

    13
    14
    15
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/socket_address.rb', line 13

    def j_del
      @j_del
    end

### - (`Object`) port

Raises:

- (`ArgumentError`)

    24
    25
    26
    27
    28
    29
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/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