Class: MOCO::FixedCost
- Inherits:
-
BaseEntity
- Object
- BaseEntity
- MOCO::FixedCost
- Defined in:
- lib/moco/entities/fixed_cost.rb
Overview
Represents a MOCO fixed cost entry (Fixkosten) Read-only access to company fixed costs for reporting
Read-only attributes:
id, title, description, costs (Array of monthly amounts),
created_at, updated_at
Costs array format:
[{ year: 2024, month: 1, amount: 50000.0 }, ...]
Filtering:
moco.fixed_costs.where(year: 2024)
Note:
Fixed costs are configured in MOCO's admin interface.
This endpoint provides read-only access for reporting.
Instance Attribute Summary
Attributes inherited from BaseEntity
Class Method Summary collapse
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
Class Method Details
.entity_path ⇒ Object
22 23 24 |
# File 'lib/moco/entities/fixed_cost.rb', line 22 def self.entity_path "account/fixed_costs" end |
Instance Method Details
#to_s ⇒ Object
26 27 28 |
# File 'lib/moco/entities/fixed_cost.rb', line 26 def to_s name.to_s end |