class Probasketball::Api::Response::Error
Attributes
status[R]
Public Class Methods
new(error, status = :unprocessable_entity)
click to toggle source
# File lib/probasketball/api/response.rb, line 18 def initialize(error, status = :unprocessable_entity) @error = error @status = status end
Public Instance Methods
body()
click to toggle source
# File lib/probasketball/api/response.rb, line 23 def body { error: @error } end
success?()
click to toggle source
# File lib/probasketball/api/response.rb, line 27 def success? false end