class Arthur::Error
Attributes
data[R]
Public Class Methods
fetch(error_id)
click to toggle source
# File lib/arthur/error.rb, line 5 def self.fetch(error_id) Arthur::Error.new(Arthur::Api.get("/errors/#{error_id}")) end
new(data)
click to toggle source
# File lib/arthur/error.rb, line 11 def initialize(data) @data = data end
Public Instance Methods
count_in_environment(env)
click to toggle source
# File lib/arthur/error.rb, line 15 def count_in_environment(env) @data['release_stages'].fetch(env, 0) end