Class: Deploy::DeploymentTap
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
class_name, #create, #destroy, find, find_all, find_single, member_path, #method_missing, #new_record?, #post, post, #save, #update
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Deploy::Base
Class Method Details
.collection_path(params = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/deploy/deployment_tap.rb', line 5 def collection_path(params = {}) base = "projects/#{params[:project].permalink}/deployments/#{params[:deployment].identifier}.js" base += "?since=#{params[:since]}" if params[:since] base end |
Instance Method Details
#default_params ⇒ Object
12 13 14 |
# File 'lib/deploy/deployment_tap.rb', line 12 def default_params {:deployment => self.deployment, :project => self.deployment.project} end |