Method: M2R::Response#status
- Defined in:
- lib/m2r/response.rb
#status(value = GETTER) ⇒ Object
81 82 83 84 85 86 87 88 89 |
# File 'lib/m2r/response.rb', line 81 def status(value = GETTER) if value == GETTER @status else @status = value.to_i @reason = STATUS_CODES[@status] self end end |