Class: Ensuppar::Entities::EnergySchedule
- Inherits:
-
Object
- Object
- Ensuppar::Entities::EnergySchedule
- Defined in:
- lib/ensuppar/entities/energy_schedule.rb
Instance Attribute Summary collapse
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
Instance Method Summary collapse
- #info ⇒ Object
-
#initialize(start_date: nil, end_date: nil) ⇒ EnergySchedule
constructor
A new instance of EnergySchedule.
Constructor Details
#initialize(start_date: nil, end_date: nil) ⇒ EnergySchedule
Returns a new instance of EnergySchedule.
6 7 8 9 |
# File 'lib/ensuppar/entities/energy_schedule.rb', line 6 def initialize(start_date: nil, end_date: nil) @start_date = start_date @end_date = end_date end |
Instance Attribute Details
#end_date ⇒ Object (readonly)
Returns the value of attribute end_date.
4 5 6 |
# File 'lib/ensuppar/entities/energy_schedule.rb', line 4 def end_date @end_date end |
#start_date ⇒ Object (readonly)
Returns the value of attribute start_date.
4 5 6 |
# File 'lib/ensuppar/entities/energy_schedule.rb', line 4 def start_date @start_date end |
Instance Method Details
#info ⇒ Object
11 12 13 |
# File 'lib/ensuppar/entities/energy_schedule.rb', line 11 def info " [ #{start_date} - #{end_date} ] " end |