Class: PipeRocket::Stage

Inherits:
Entity
  • Object
show all
Defined in:
lib/pipe_rocket/stage.rb

Instance Method Summary collapse

Methods inherited from Entity

#assign_custom_fields, #initialize, #transform_field_name

Constructor Details

This class inherits a constructor from PipeRocket::Entity

Instance Method Details

#display_nameObject

Returns stage name like PipelineName:StageName



9
10
11
# File 'lib/pipe_rocket/stage.rb', line 9

def display_name
  "#{pipeline.name}:#{name}"
end

#pipelineObject

Return PipeRocket::Pipeline object which related with stage



4
5
6
# File 'lib/pipe_rocket/stage.rb', line 4

def pipeline
  Pipedrive.pipelines.find(self.pipeline_id)
end