Class: AhoyCaptain::PeriodCollection::Period
- Inherits:
-
Object
- Object
- AhoyCaptain::PeriodCollection::Period
- Defined in:
- lib/ahoy_captain/period_collection.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#param ⇒ Object
readonly
Returns the value of attribute param.
-
#range ⇒ Object
readonly
Returns the value of attribute range.
Instance Method Summary collapse
-
#initialize(param:, label:, range:) ⇒ Period
constructor
A new instance of Period.
Constructor Details
#initialize(param:, label:, range:) ⇒ Period
Returns a new instance of Period.
5 6 7 8 9 |
# File 'lib/ahoy_captain/period_collection.rb', line 5 def initialize(param:, label:, range:) @param = param @label = label @range = range end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
4 5 6 |
# File 'lib/ahoy_captain/period_collection.rb', line 4 def label @label end |
#param ⇒ Object (readonly)
Returns the value of attribute param.
4 5 6 |
# File 'lib/ahoy_captain/period_collection.rb', line 4 def param @param end |
#range ⇒ Object (readonly)
Returns the value of attribute range.
4 5 6 |
# File 'lib/ahoy_captain/period_collection.rb', line 4 def range @range end |