Class: Domain::WorkItemsLimit

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#domainObject (readonly)

Returns the value of attribute domain.



9
10
11
# File 'lib/bas/domain/work_items_limit.rb', line 9

def domain
  @domain
end

#totalObject (readonly)

Returns the value of attribute total.



9
10
11
# File 'lib/bas/domain/work_items_limit.rb', line 9

def total
  @total
end