Class: Sifterology::Commit

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

Instance Attribute Summary collapse

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

#assigneeObject

Returns the value of attribute assignee.



5
6
7
# File 'lib/sifterology/commit.rb', line 5

def assignee
  @assignee
end

#changeset_urlObject

Returns the value of attribute changeset_url.



5
6
7
# File 'lib/sifterology/commit.rb', line 5

def changeset_url
  @changeset_url
end

#commit_messageObject

Returns the value of attribute commit_message.



5
6
7
# File 'lib/sifterology/commit.rb', line 5

def commit_message
  @commit_message
end

#commit_timeObject

Returns the value of attribute commit_time.



5
6
7
# File 'lib/sifterology/commit.rb', line 5

def commit_time
  @commit_time
end

#committerObject

Returns the value of attribute committer.



5
6
7
# File 'lib/sifterology/commit.rb', line 5

def committer
  @committer
end

#committer_emailObject

Returns the value of attribute committer_email.



5
6
7
# File 'lib/sifterology/commit.rb', line 5

def committer_email
  @committer_email
end

#issueObject

Returns the value of attribute issue.



5
6
7
# File 'lib/sifterology/commit.rb', line 5

def issue
  @issue
end

#project_urlObject

Returns the value of attribute project_url.



5
6
7
# File 'lib/sifterology/commit.rb', line 5

def project_url
  @project_url
end

#statusObject

Returns the value of attribute status.



5
6
7
# File 'lib/sifterology/commit.rb', line 5

def status
  @status
end

#unassignObject

Returns the value of attribute unassign.



5
6
7
# File 'lib/sifterology/commit.rb', line 5

def unassign
  @unassign
end

Instance Method Details

#entity_pathObject



12
13
14
# File 'lib/sifterology/commit.rb', line 12

def entity_path
  File.join(project_path, 'beanstalk')
end

#project_pathObject



16
17
18
# File 'lib/sifterology/commit.rb', line 16

def project_path
  URI.parse(project_url).path
end

#saveObject



8
9
10
# File 'lib/sifterology/commit.rb', line 8

def save
  post(entity_path, :body => payload)
end