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
18 19 20 |
# File 'lib/droonga/output_message.rb', line 18 def initialize() = end |
Instance Method Details
#adapted_message ⇒ Object
22 23 24 25 26 27 |
# File 'lib/droonga/output_message.rb', line 22 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. end |
#body ⇒ Object
45 46 47 |
# File 'lib/droonga/output_message.rb', line 45 def body ["body"] end |
#body=(body) ⇒ Object
49 50 51 |
# File 'lib/droonga/output_message.rb', line 49 def body=(body) ["body"] = body end |
#errors ⇒ Object
37 38 39 |
# File 'lib/droonga/output_message.rb', line 37 def errors ["errors"] end |
#errors=(errors) ⇒ Object
41 42 43 |
# File 'lib/droonga/output_message.rb', line 41 def errors=(errors) ["errors"] = errors end |
#status_code ⇒ Object
29 30 31 |
# File 'lib/droonga/output_message.rb', line 29 def status_code ["statusCode"] end |
#status_code=(status_code) ⇒ Object
33 34 35 |
# File 'lib/droonga/output_message.rb', line 33 def status_code=(status_code) ["statusCode"] = status_code end |