Class: PipedriveJetrockets::Stage

Inherits:
Entity
  • Object
show all
Defined in:
lib/pipedrive_jetrockets/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 PipedriveJetrockets::Entity

Instance Method Details

#display_nameObject



7
8
9
# File 'lib/pipedrive_jetrockets/stage.rb', line 7

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

#pipelineObject



3
4
5
# File 'lib/pipedrive_jetrockets/stage.rb', line 3

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