class Koko::Tracker::Response
Attributes
body[R]
status[R]
Public Class Methods
new(status = 200, body = nil)
click to toggle source
public: Simple class to wrap responses from the API
# File lib/koko/tracker/response.rb, line 9 def initialize(status = 200, body = nil) @status = status @body = body end
Public Instance Methods
valid?()
click to toggle source
# File lib/koko/tracker/response.rb, line 14 def valid? @status >= 200 && @status < 300 end