Class: Sifterology::Project

Inherits:
Resource show all
Defined in:
lib/sifterology/project.rb

Instance Attribute Summary

Attributes inherited from Resource

#factory, #last_request, #session

Instance Method Summary collapse

Methods inherited from Resource

#attributes=, #delete, #get, #initialize, #local_attributes=, #post, #put, sifter_attrs

Constructor Details

This class inherits a constructor from Sifterology::Resource

Instance Method Details

#api_pathObject



13
14
15
# File 'lib/sifterology/project.rb', line 13

def api_path
  URI.parse(api_url).path
end

#archived?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/sifterology/project.rb', line 9

def archived?
  archived
end

#test_requestObject



17
18
19
20
# File 'lib/sifterology/project.rb', line 17

def test_request
  response = post(File.join(api_path, 'beanstalk', 'test'), :body => '')
  response && response["summary"] == 'Success'
end