Class: Clova::EventRequest
- Defined in:
- lib/clova-speech/request/event_request.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Request
Instance Method Summary collapse
-
#initialize(session:, context:, request:, version:) ⇒ EventRequest
constructor
A new instance of EventRequest.
Methods inherited from Request
Constructor Details
#initialize(session:, context:, request:, version:) ⇒ EventRequest
Returns a new instance of EventRequest.
4 5 6 7 8 9 10 11 12 |
# File 'lib/clova-speech/request/event_request.rb', line 4 def initialize(session:, context:, request:, version:) super @event = request[:event] @namespace = @event[:namespace] @name = @event[:name] @payload = @event[:payload] @type = 'EventRequest' end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
3 4 5 |
# File 'lib/clova-speech/request/event_request.rb', line 3 def event @event end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/clova-speech/request/event_request.rb', line 3 def name @name end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
3 4 5 |
# File 'lib/clova-speech/request/event_request.rb', line 3 def namespace @namespace end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
3 4 5 |
# File 'lib/clova-speech/request/event_request.rb', line 3 def payload @payload end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/clova-speech/request/event_request.rb', line 3 def type @type end |