Class: Reactor
- Inherits:
-
Object
- Object
- Reactor
- Defined in:
- lib/reactor.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#CommercialOperationDate ⇒ Object
Returns the value of attribute CommercialOperationDate.
-
#ConstrRestartDate ⇒ Object
Returns the value of attribute ConstrRestartDate.
-
#ConstrSuspendedDate ⇒ Object
Returns the value of attribute ConstrSuspendedDate.
-
#ConstructionStartDate ⇒ Object
Returns the value of attribute ConstructionStartDate.
-
#DesignNetCapacity ⇒ Object
Returns the value of attribute DesignNetCapacity.
-
#EAF ⇒ Object
Returns the value of attribute EAF.
-
#EUL ⇒ Object
Returns the value of attribute EUL.
-
#FirstCriticality ⇒ Object
Returns the value of attribute FirstCriticality.
-
#Generation ⇒ Object
Returns the value of attribute Generation.
-
#GridConnectionDate ⇒ Object
Returns the value of attribute GridConnectionDate.
-
#GrossCapacity ⇒ Object
Returns the value of attribute GrossCapacity.
-
#id ⇒ Object
Returns the value of attribute id.
-
#LifetimePerformanceYear ⇒ Object
Returns the value of attribute LifetimePerformanceYear.
-
#LoadFactor ⇒ Object
Returns the value of attribute LoadFactor.
-
#location ⇒ Object
Returns the value of attribute location.
-
#LongTermShutdownDate ⇒ Object
Returns the value of attribute LongTermShutdownDate.
-
#Model ⇒ Object
Returns the value of attribute Model.
-
#name ⇒ Object
Returns the value of attribute name.
-
#NetCapacity ⇒ Object
Returns the value of attribute NetCapacity.
-
#OperatingFactor ⇒ Object
Returns the value of attribute OperatingFactor.
-
#PermanentShutdownDate ⇒ Object
Returns the value of attribute PermanentShutdownDate.
-
#RestartDate ⇒ Object
Returns the value of attribute RestartDate.
-
#status ⇒ Object
Returns the value of attribute status.
-
#ThermalCapacity ⇒ Object
Returns the value of attribute ThermalCapacity.
-
#Type ⇒ Object
Returns the value of attribute Type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(reactor_data) ⇒ Reactor
constructor
reactor_data is a hash that NuclearPowerReactors class will produce by scraping data.
Constructor Details
#initialize(reactor_data) ⇒ Reactor
reactor_data is a hash that NuclearPowerReactors class will produce by scraping data
10 11 12 13 14 15 |
# File 'lib/reactor.rb', line 10 def initialize(reactor_data) #reactor_data is a hash that NuclearPowerReactors class will produce by scraping data reactor_data.each do |attribute, value| self.send(("#{attribute}="), value) end @@all << self end |
Instance Attribute Details
#CommercialOperationDate ⇒ Object
Returns the value of attribute CommercialOperationDate.
2 3 4 |
# File 'lib/reactor.rb', line 2 def CommercialOperationDate @CommercialOperationDate end |
#ConstrRestartDate ⇒ Object
Returns the value of attribute ConstrRestartDate.
2 3 4 |
# File 'lib/reactor.rb', line 2 def ConstrRestartDate @ConstrRestartDate end |
#ConstrSuspendedDate ⇒ Object
Returns the value of attribute ConstrSuspendedDate.
2 3 4 |
# File 'lib/reactor.rb', line 2 def ConstrSuspendedDate @ConstrSuspendedDate end |
#ConstructionStartDate ⇒ Object
Returns the value of attribute ConstructionStartDate.
2 3 4 |
# File 'lib/reactor.rb', line 2 def ConstructionStartDate @ConstructionStartDate end |
#DesignNetCapacity ⇒ Object
Returns the value of attribute DesignNetCapacity.
2 3 4 |
# File 'lib/reactor.rb', line 2 def DesignNetCapacity @DesignNetCapacity end |
#EAF ⇒ Object
Returns the value of attribute EAF.
2 3 4 |
# File 'lib/reactor.rb', line 2 def EAF @EAF end |
#EUL ⇒ Object
Returns the value of attribute EUL.
2 3 4 |
# File 'lib/reactor.rb', line 2 def EUL @EUL end |
#FirstCriticality ⇒ Object
Returns the value of attribute FirstCriticality.
2 3 4 |
# File 'lib/reactor.rb', line 2 def FirstCriticality @FirstCriticality end |
#Generation ⇒ Object
Returns the value of attribute Generation.
2 3 4 |
# File 'lib/reactor.rb', line 2 def Generation @Generation end |
#GridConnectionDate ⇒ Object
Returns the value of attribute GridConnectionDate.
2 3 4 |
# File 'lib/reactor.rb', line 2 def GridConnectionDate @GridConnectionDate end |
#GrossCapacity ⇒ Object
Returns the value of attribute GrossCapacity.
2 3 4 |
# File 'lib/reactor.rb', line 2 def GrossCapacity @GrossCapacity end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/reactor.rb', line 2 def id @id end |
#LifetimePerformanceYear ⇒ Object
Returns the value of attribute LifetimePerformanceYear.
2 3 4 |
# File 'lib/reactor.rb', line 2 def LifetimePerformanceYear @LifetimePerformanceYear end |
#LoadFactor ⇒ Object
Returns the value of attribute LoadFactor.
2 3 4 |
# File 'lib/reactor.rb', line 2 def LoadFactor @LoadFactor end |
#location ⇒ Object
Returns the value of attribute location.
2 3 4 |
# File 'lib/reactor.rb', line 2 def location @location end |
#LongTermShutdownDate ⇒ Object
Returns the value of attribute LongTermShutdownDate.
2 3 4 |
# File 'lib/reactor.rb', line 2 def LongTermShutdownDate @LongTermShutdownDate end |
#Model ⇒ Object
Returns the value of attribute Model.
2 3 4 |
# File 'lib/reactor.rb', line 2 def Model @Model end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/reactor.rb', line 2 def name @name end |
#NetCapacity ⇒ Object
Returns the value of attribute NetCapacity.
2 3 4 |
# File 'lib/reactor.rb', line 2 def NetCapacity @NetCapacity end |
#OperatingFactor ⇒ Object
Returns the value of attribute OperatingFactor.
2 3 4 |
# File 'lib/reactor.rb', line 2 def OperatingFactor @OperatingFactor end |
#PermanentShutdownDate ⇒ Object
Returns the value of attribute PermanentShutdownDate.
2 3 4 |
# File 'lib/reactor.rb', line 2 def PermanentShutdownDate @PermanentShutdownDate end |
#RestartDate ⇒ Object
Returns the value of attribute RestartDate.
2 3 4 |
# File 'lib/reactor.rb', line 2 def RestartDate @RestartDate end |
#status ⇒ Object
Returns the value of attribute status.
2 3 4 |
# File 'lib/reactor.rb', line 2 def status @status end |
#ThermalCapacity ⇒ Object
Returns the value of attribute ThermalCapacity.
2 3 4 |
# File 'lib/reactor.rb', line 2 def ThermalCapacity @ThermalCapacity end |
#Type ⇒ Object
Returns the value of attribute Type.
2 3 4 |
# File 'lib/reactor.rb', line 2 def Type @Type end |
Class Method Details
.all ⇒ Object
17 18 19 |
# File 'lib/reactor.rb', line 17 def self.all @@all end |