class Qualityforward::Project

Public Class Methods

get() click to toggle source
# File lib/qualityforward/project.rb, line 20
def self.get
  client = Qualityforward::Client.new(@@api_key)
  json = client.get '/api/v2/current_project.json'
  Qualityforward::Project.new(json)
end
new(body = {}) click to toggle source
# File lib/qualityforward/project.rb, line 5
def initialize(body = {})
  @client = Qualityforward::Client.new
  self.sets body
end

Public Instance Methods

set(key, value) click to toggle source
# File lib/qualityforward/project.rb, line 16
def set key, value
  self[key] = value
end
sets(body) click to toggle source
# File lib/qualityforward/project.rb, line 10
def sets body
  body.each do |key, value|
    self.set(key, value)
  end
end