Class: AhoyCaptain::PeriodCollection::Period

Inherits:
Object
  • Object
show all
Defined in:
lib/ahoy_captain/period_collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#labelObject (readonly)

Returns the value of attribute label.



4
5
6
# File 'lib/ahoy_captain/period_collection.rb', line 4

def label
  @label
end

#paramObject (readonly)

Returns the value of attribute param.



4
5
6
# File 'lib/ahoy_captain/period_collection.rb', line 4

def param
  @param
end

#rangeObject (readonly)

Returns the value of attribute range.



4
5
6
# File 'lib/ahoy_captain/period_collection.rb', line 4

def range
  @range
end