Class: VertxStomp::ServerFrame
- Inherits:
-
Object
- Object
- VertxStomp::ServerFrame
- Defined in:
- /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/server_frame.rb
Instance Method Summary (collapse)
- - (Object) connection
- - (Object) frame
-
- (ServerFrame) initialize(j_del)
constructor
A new instance of ServerFrame.
- - (Object) j_del
Constructor Details
- (ServerFrame) initialize(j_del)
Returns a new instance of ServerFrame
10 11 12 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/server_frame.rb', line 10 def initialize(j_del) @j_del = j_del end |
Instance Method Details
- (Object) connection
26 27 28 29 30 31 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/server_frame.rb', line 26 def connection if !block_given? return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:connection, []).call(),::VertxStomp::StompServerConnection) end raise ArgumentError, "Invalid arguments when calling connection()" end |
- (Object) frame
19 20 21 22 23 24 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/server_frame.rb', line 19 def frame if !block_given? return @j_del.java_method(:frame, []).call() != nil ? JSON.parse(@j_del.java_method(:frame, []).call().toJson.encode) : nil end raise ArgumentError, "Invalid arguments when calling frame()" end |
- (Object) j_del
15 16 17 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/server_frame.rb', line 15 def j_del @j_del end |