Exception: QuickBlox::Exceptions::Response
- Defined in:
- lib/quick_blox/exceptions/response.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(messages) ⇒ Response
constructor
A new instance of Response.
- #to_s ⇒ Object
Constructor Details
#initialize(messages) ⇒ Response
Returns a new instance of Response.
6 7 8 |
# File 'lib/quick_blox/exceptions/response.rb', line 6 def initialize() @messages = end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/quick_blox/exceptions/response.rb', line 4 def code @code end |
Instance Method Details
#to_s ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/quick_blox/exceptions/response.rb', line 10 def to_s = [] @messages.each do |k,v| v.to_a.each do || << "QB: #{ k }: #{ }" end end .join('. ') end |