Class: Droonga::OutputMessage
- Inherits:
-
Object
- Object
- Droonga::OutputMessage
- Defined in:
- lib/droonga/output_message.rb
Instance Method Summary collapse
- #adapted_message ⇒ Object
- #body ⇒ Object
- #body=(body) ⇒ Object
- #errors ⇒ Object
- #errors=(errors) ⇒ Object
-
#initialize(raw_message) ⇒ OutputMessage
constructor
A new instance of OutputMessage.
- #status_code ⇒ Object
- #status_code=(status_code) ⇒ Object
Constructor Details
#initialize(raw_message) ⇒ OutputMessage
Returns a new instance of OutputMessage.
20 21 22 |
# File 'lib/droonga/output_message.rb', line 20 def initialize() @raw_message = end |
Instance Method Details
#adapted_message ⇒ Object
24 25 26 27 28 29 |
# File 'lib/droonga/output_message.rb', line 24 def # TODO: We can create adapted message non-destructively. # If it is not performance issue, it is better that we don't # change message destructively. Consider about it later. @raw_message end |
#body ⇒ Object
47 48 49 |
# File 'lib/droonga/output_message.rb', line 47 def body @raw_message["body"] end |
#body=(body) ⇒ Object
51 52 53 |
# File 'lib/droonga/output_message.rb', line 51 def body=(body) @raw_message["body"] = body end |
#errors ⇒ Object
39 40 41 |
# File 'lib/droonga/output_message.rb', line 39 def errors @raw_message["errors"] end |
#errors=(errors) ⇒ Object
43 44 45 |
# File 'lib/droonga/output_message.rb', line 43 def errors=(errors) @raw_message["errors"] = errors end |
#status_code ⇒ Object
31 32 33 |
# File 'lib/droonga/output_message.rb', line 31 def status_code @raw_message["statusCode"] end |
#status_code=(status_code) ⇒ Object
35 36 37 |
# File 'lib/droonga/output_message.rb', line 35 def status_code=(status_code) @raw_message["statusCode"] = status_code end |