Method: PostageApp::Response#method_missing
- Defined in:
- lib/postageapp/response.rb
#method_missing(method) ⇒ Object
Little helper that checks for the Response status
=> @response.ok?
>> true
=> @response.fail?
>> false
35 36 37 |
# File 'lib/postageapp/response.rb', line 35 def method_missing(method) /.*?\?$/.match(method.to_s) ? "#{self.status}?" == method.to_s : super(method) end |