class Plaza::Response
Public Instance Methods
code()
click to toggle source
# File lib/plaza/response.rb, line 21 def code status end
failed?()
click to toggle source
# File lib/plaza/response.rb, line 13 def failed? [4, 5].include?(status.to_s[0].to_i) end
redirected?()
click to toggle source
# File lib/plaza/response.rb, line 9 def redirected? status.to_s[0].to_i == 3 end
success?()
click to toggle source
# File lib/plaza/response.rb, line 5 def success? status.to_s[0].to_i == 2 end
to_str()
click to toggle source
# File lib/plaza/response.rb, line 17 def to_str body.to_s end
Private Instance Methods
object()
click to toggle source
# File lib/plaza/response.rb, line 26 def object __getobj__ end