Class: Bidi2pdf::Bidi::Commands::SessionSubscribe
- Inherits:
-
Object
- Object
- Bidi2pdf::Bidi::Commands::SessionSubscribe
- Includes:
- Base
- Defined in:
- lib/bidi2pdf/bidi/commands/session_subscribe.rb
Instance Attribute Summary collapse
-
#events ⇒ Object
readonly
Returns the value of attribute events.
Instance Method Summary collapse
-
#initialize(events:) ⇒ SessionSubscribe
constructor
A new instance of SessionSubscribe.
- #method_name ⇒ Object
- #params ⇒ Object
Methods included from Base
#==, #as_payload, #eql?, #hash, #inspect
Constructor Details
#initialize(events:) ⇒ SessionSubscribe
Returns a new instance of SessionSubscribe.
11 12 13 |
# File 'lib/bidi2pdf/bidi/commands/session_subscribe.rb', line 11 def initialize(events:) @events = events end |
Instance Attribute Details
#events ⇒ Object (readonly)
Returns the value of attribute events.
9 10 11 |
# File 'lib/bidi2pdf/bidi/commands/session_subscribe.rb', line 9 def events @events end |
Instance Method Details
#method_name ⇒ Object
15 16 17 |
# File 'lib/bidi2pdf/bidi/commands/session_subscribe.rb', line 15 def method_name "session.subscribe" end |
#params ⇒ Object
19 20 21 |
# File 'lib/bidi2pdf/bidi/commands/session_subscribe.rb', line 19 def params { events: events }.compact end |