Class List Method List File List

# Class: VertxStomp::Acknowledgement

Inherits:
  Object
  - Object
  - VertxStomp::Acknowledgement
  show all
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/acknowledgement.rb

## Instance Method Summary (collapse)

- - (Object) frames
- - (Acknowledgement) initialize(j_del) constructor
  A new instance of Acknowledgement.
- - (Object) j_del
- - (Object) subscription

## Constructor Details

### - (`Acknowledgement`) initialize(j_del)

Returns a new instance of Acknowledgement

    15
    16
    17
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/acknowledgement.rb', line 15

    def initialize(j_del)
      @j_del = j_del
    end

## Instance Method Details

### - (`Object`) frames

Raises:

- (`ArgumentError`)

    31
    32
    33
    34
    35
    36
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/acknowledgement.rb', line 31

    def frames
      if !block_given?
        return @j_del.java_method(:frames, []).call().to_a.map { |elt| elt != nil ? JSON.parse(elt.toJson.encode) : nil }
      end
      raise ArgumentError, "Invalid arguments when calling frames()"
    end

### - (`Object`) j_del

    20
    21
    22
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/acknowledgement.rb', line 20

    def j_del
      @j_del
    end

### - (`Object`) subscription

Raises:

- (`ArgumentError`)

    24
    25
    26
    27
    28
    29
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/acknowledgement.rb', line 24

    def subscription
      if !block_given?
        return @j_del.java_method(:subscription, []).call() != nil ? JSON.parse(@j_del.java_method(:subscription, []).call().toJson.encode) : nil
      end
      raise ArgumentError, "Invalid arguments when calling subscription()"
    end