class MySportsFeeds::Response::Error
Attributes
status[R]
Public Class Methods
new(error, status = 422)
click to toggle source
# File lib/mysportsfeeds/response.rb, line 19 def initialize(error, status = 422) @error = error @status = status end
Public Instance Methods
body()
click to toggle source
# File lib/mysportsfeeds/response.rb, line 24 def body { error: @error } end
success?()
click to toggle source
# File lib/mysportsfeeds/response.rb, line 28 def success? false end