Class: MOCO::DealCategory

Inherits:
BaseEntity show all
Defined in:
lib/moco/entities/deal_category.rb

Overview

Represents a MOCO deal category/stage (Akquise-Stufen)

Required attributes for create:

name        - String, category name (e.g., "Contact", "Qualified", "Proposal")
probability - Integer, win probability percentage (0-100)

Read-only attributes:

id, created_at, updated_at

Example:

moco.deal_categories.create(
  name: "Qualified Lead",
  probability: 25
)

Note:

Categories cannot be deleted if deals are using them.

Instance Attribute Summary

Attributes inherited from BaseEntity

#attributes, #client

Instance Method Summary collapse

Methods inherited from BaseEntity

#==, #association, #destroy, #eql?, #has_many, #hash, #id, #initialize, #inspect, #reload, #save, #to_h, #to_json, #update

Constructor Details

This class inherits a constructor from MOCO::BaseEntity

Instance Method Details

#to_sObject



23
24
25
# File 'lib/moco/entities/deal_category.rb', line 23

def to_s
  name.to_s
end