class Camunda::Model
This class in the main element of Her. It defines which API models will be bound to.
Public Class Methods
find_by!(params)
click to toggle source
Returns result of find_by but raises an exception instead of returning nil @param params [Hash] query parameters @return [Camunda::Model] @raise [Camunda::Model::RecordNotFound] if query returns no results
# File lib/camunda/model.rb, line 39 def self.find_by!(params) find_by(params).tap do |result| raise Camunda::Model::RecordNotFound unless result end end
log_details?()
click to toggle source
# File lib/camunda/model.rb, line 6 def self.log_details? defined?(Rails) && Rails.env.development? end
worker_id()
click to toggle source
Returns the worker id @note default worker id is set in Camunda::Workflow.configuration
@return [String] id of worker
# File lib/camunda/model.rb, line 48 def self.worker_id Camunda::Workflow.configuration.worker_id end