Sha256: b465a6b32d8879305da1cb3867316a76d816c3ea3acacc702774557a5b6f6c2e

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

require 'open-uri'

module Sifterology
  
  class Project < Resource
    
    sifter_attrs :name, :api_url, :issues_url, :archived, :primary_company_name
    
    def archived?
      archived
    end
    
    def api_path
      URI.parse(api_url).path
    end
    
    def test_request
      response = post(File.join(api_path, 'beanstalk', 'test'), :body => '')
      response && response["summary"] == 'Success'
    end
    
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sifterology-0.1.1 lib/sifterology/project.rb