Class: Domain::WorkItemsLimit
- Inherits:
-
Object
- Object
- Domain::WorkItemsLimit
- Defined in:
- lib/bas/domain/work_items_limit.rb
Overview
The Domain::WorkItemsLimit class provides a domain-specific representation of a Work Item object. It encapsulates information about a work items limit, including the domain and total.
Constant Summary collapse
- ATTRIBUTES =
%w[domain total].freeze
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(domain, total) ⇒ WorkItemsLimit
constructor
Initializes a Domain::WorkItemsLimit instance with the specified domain and total.
Constructor Details
#initialize(domain, total) ⇒ WorkItemsLimit
Initializes a Domain::WorkItemsLimit instance with the specified domain and total.
Params:
-
String
‘domain’ responsible domain of the work items. -
String
‘total’ total ‘in progress’ work items.
20 21 22 23 |
# File 'lib/bas/domain/work_items_limit.rb', line 20 def initialize(domain, total) @domain = domain @total = total end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
9 10 11 |
# File 'lib/bas/domain/work_items_limit.rb', line 9 def domain @domain end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
9 10 11 |
# File 'lib/bas/domain/work_items_limit.rb', line 9 def total @total end |