Class: Pipekit::ResourceLabel
- Inherits:
-
Object
- Object
- Pipekit::ResourceLabel
- Defined in:
- lib/pipekit/resource_label.rb
Instance Attribute Summary collapse
-
#pluralized ⇒ Object
readonly
Returns the value of attribute pluralized.
-
#singular ⇒ Object
readonly
Returns the value of attribute singular.
Instance Method Summary collapse
-
#initialize(singular_label:, pluralized_label:) ⇒ ResourceLabel
constructor
A new instance of ResourceLabel.
Constructor Details
#initialize(singular_label:, pluralized_label:) ⇒ ResourceLabel
Returns a new instance of ResourceLabel.
6 7 8 9 |
# File 'lib/pipekit/resource_label.rb', line 6 def initialize(singular_label:, pluralized_label:) @singular = singular_label @pluralized = pluralized_label end |
Instance Attribute Details
#pluralized ⇒ Object (readonly)
Returns the value of attribute pluralized.
4 5 6 |
# File 'lib/pipekit/resource_label.rb', line 4 def pluralized @pluralized end |
#singular ⇒ Object (readonly)
Returns the value of attribute singular.
4 5 6 |
# File 'lib/pipekit/resource_label.rb', line 4 def singular @singular end |