Class: Reactor

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

Constant Summary collapse

@@all =
[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#CommercialOperationDateObject

Returns the value of attribute CommercialOperationDate.



2
3
4
# File 'lib/reactor.rb', line 2

def CommercialOperationDate
  @CommercialOperationDate
end

#ConstrRestartDateObject

Returns the value of attribute ConstrRestartDate.



2
3
4
# File 'lib/reactor.rb', line 2

def ConstrRestartDate
  @ConstrRestartDate
end

#ConstrSuspendedDateObject

Returns the value of attribute ConstrSuspendedDate.



2
3
4
# File 'lib/reactor.rb', line 2

def ConstrSuspendedDate
  @ConstrSuspendedDate
end

#ConstructionStartDateObject

Returns the value of attribute ConstructionStartDate.



2
3
4
# File 'lib/reactor.rb', line 2

def ConstructionStartDate
  @ConstructionStartDate
end

#DesignNetCapacityObject

Returns the value of attribute DesignNetCapacity.



2
3
4
# File 'lib/reactor.rb', line 2

def DesignNetCapacity
  @DesignNetCapacity
end

#EAFObject

Returns the value of attribute EAF.



2
3
4
# File 'lib/reactor.rb', line 2

def EAF
  @EAF
end

#EULObject

Returns the value of attribute EUL.



2
3
4
# File 'lib/reactor.rb', line 2

def EUL
  @EUL
end

#FirstCriticalityObject

Returns the value of attribute FirstCriticality.



2
3
4
# File 'lib/reactor.rb', line 2

def FirstCriticality
  @FirstCriticality
end

#GenerationObject

Returns the value of attribute Generation.



2
3
4
# File 'lib/reactor.rb', line 2

def Generation
  @Generation
end

#GridConnectionDateObject

Returns the value of attribute GridConnectionDate.



2
3
4
# File 'lib/reactor.rb', line 2

def GridConnectionDate
  @GridConnectionDate
end

#GrossCapacityObject

Returns the value of attribute GrossCapacity.



2
3
4
# File 'lib/reactor.rb', line 2

def GrossCapacity
  @GrossCapacity
end

#idObject

Returns the value of attribute id.



2
3
4
# File 'lib/reactor.rb', line 2

def id
  @id
end

#LifetimePerformanceYearObject

Returns the value of attribute LifetimePerformanceYear.



2
3
4
# File 'lib/reactor.rb', line 2

def LifetimePerformanceYear
  @LifetimePerformanceYear
end

#LoadFactorObject

Returns the value of attribute LoadFactor.



2
3
4
# File 'lib/reactor.rb', line 2

def LoadFactor
  @LoadFactor
end

#locationObject

Returns the value of attribute location.



2
3
4
# File 'lib/reactor.rb', line 2

def location
  @location
end

#LongTermShutdownDateObject

Returns the value of attribute LongTermShutdownDate.



2
3
4
# File 'lib/reactor.rb', line 2

def LongTermShutdownDate
  @LongTermShutdownDate
end

#ModelObject

Returns the value of attribute Model.



2
3
4
# File 'lib/reactor.rb', line 2

def Model
  @Model
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/reactor.rb', line 2

def name
  @name
end

#NetCapacityObject

Returns the value of attribute NetCapacity.



2
3
4
# File 'lib/reactor.rb', line 2

def NetCapacity
  @NetCapacity
end

#OperatingFactorObject

Returns the value of attribute OperatingFactor.



2
3
4
# File 'lib/reactor.rb', line 2

def OperatingFactor
  @OperatingFactor
end

#PermanentShutdownDateObject

Returns the value of attribute PermanentShutdownDate.



2
3
4
# File 'lib/reactor.rb', line 2

def PermanentShutdownDate
  @PermanentShutdownDate
end

#RestartDateObject

Returns the value of attribute RestartDate.



2
3
4
# File 'lib/reactor.rb', line 2

def RestartDate
  @RestartDate
end

#statusObject

Returns the value of attribute status.



2
3
4
# File 'lib/reactor.rb', line 2

def status
  @status
end

#ThermalCapacityObject

Returns the value of attribute ThermalCapacity.



2
3
4
# File 'lib/reactor.rb', line 2

def ThermalCapacity
  @ThermalCapacity
end

#TypeObject

Returns the value of attribute Type.



2
3
4
# File 'lib/reactor.rb', line 2

def Type
  @Type
end

Class Method Details

.allObject



17
18
19
# File 'lib/reactor.rb', line 17

def self.all
  @@all
end