Class: Sifterology::Commit
- Defined in:
- lib/sifterology/commit.rb
Instance Attribute Summary collapse
-
#assignee ⇒ Object
Returns the value of attribute assignee.
-
#changeset_url ⇒ Object
Returns the value of attribute changeset_url.
-
#commit_message ⇒ Object
Returns the value of attribute commit_message.
-
#commit_time ⇒ Object
Returns the value of attribute commit_time.
-
#committer ⇒ Object
Returns the value of attribute committer.
-
#committer_email ⇒ Object
Returns the value of attribute committer_email.
-
#issue ⇒ Object
Returns the value of attribute issue.
-
#project_url ⇒ Object
Returns the value of attribute project_url.
-
#status ⇒ Object
Returns the value of attribute status.
-
#unassign ⇒ Object
Returns the value of attribute unassign.
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 Attribute Details
#assignee ⇒ Object
Returns the value of attribute assignee.
5 6 7 |
# File 'lib/sifterology/commit.rb', line 5 def assignee @assignee end |
#changeset_url ⇒ Object
Returns the value of attribute changeset_url.
5 6 7 |
# File 'lib/sifterology/commit.rb', line 5 def changeset_url @changeset_url end |
#commit_message ⇒ Object
Returns the value of attribute commit_message.
5 6 7 |
# File 'lib/sifterology/commit.rb', line 5 def @commit_message end |
#commit_time ⇒ Object
Returns the value of attribute commit_time.
5 6 7 |
# File 'lib/sifterology/commit.rb', line 5 def commit_time @commit_time end |
#committer ⇒ Object
Returns the value of attribute committer.
5 6 7 |
# File 'lib/sifterology/commit.rb', line 5 def committer @committer end |
#committer_email ⇒ Object
Returns the value of attribute committer_email.
5 6 7 |
# File 'lib/sifterology/commit.rb', line 5 def committer_email @committer_email end |
#issue ⇒ Object
Returns the value of attribute issue.
5 6 7 |
# File 'lib/sifterology/commit.rb', line 5 def issue @issue end |
#project_url ⇒ Object
Returns the value of attribute project_url.
5 6 7 |
# File 'lib/sifterology/commit.rb', line 5 def project_url @project_url end |
#status ⇒ Object
Returns the value of attribute status.
5 6 7 |
# File 'lib/sifterology/commit.rb', line 5 def status @status end |
#unassign ⇒ Object
Returns the value of attribute unassign.
5 6 7 |
# File 'lib/sifterology/commit.rb', line 5 def unassign @unassign end |
Instance Method Details
#entity_path ⇒ Object
12 13 14 |
# File 'lib/sifterology/commit.rb', line 12 def entity_path File.join(project_path, 'beanstalk') end |
#project_path ⇒ Object
16 17 18 |
# File 'lib/sifterology/commit.rb', line 16 def project_path URI.parse(project_url).path end |
#save ⇒ Object
8 9 10 |
# File 'lib/sifterology/commit.rb', line 8 def save post(entity_path, :body => payload) end |