class Arthur::Project

Attributes

data[R]

Public Class Methods

fetch(project_id) click to toggle source
# File lib/arthur/project.rb, line 11
def self.fetch(project_id)
  Arthur::Project.new(Arthur::Api.get("/projects/#{project_id}"))
end
list() click to toggle source
# File lib/arthur/project.rb, line 5
def self.list
  Arthur::Api.get("/account/projects").map do |project|
    Arthur::Project.new(project)
  end
end
new(data) click to toggle source
# File lib/arthur/project.rb, line 17
def initialize(data)
  @data = data
end

Public Instance Methods

errors() click to toggle source
# File lib/arthur/project.rb, line 21
def errors
  Arthur::Api.get("/projects/#{@data['id']}/errors").map do |project|
    Arthur::Error.new(project)
  end
end