Class: PortfolioManager::Xml::GreenPowerType::Sources

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

Overview

inner class for member: sources {}sources

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(biomassPct = nil, biogasPct = nil, geothermalPct = nil, smallHydroPct = nil, solarPct = nil, windPct = nil, unknownPct = nil) ⇒ Sources

Returns a new instance of Sources.



7189
7190
7191
7192
7193
7194
7195
7196
7197
# File 'lib/portfolio_manager/xml.rb', line 7189

def initialize(biomassPct = nil, biogasPct = nil, geothermalPct = nil, smallHydroPct = nil, solarPct = nil, windPct = nil, unknownPct = nil)
  @biomassPct = biomassPct
  @biogasPct = biogasPct
  @geothermalPct = geothermalPct
  @smallHydroPct = smallHydroPct
  @solarPct = solarPct
  @windPct = windPct
  @unknownPct = unknownPct
end

Instance Attribute Details

#biogasPctObject

Returns:

  • (Object)


7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
# File 'lib/portfolio_manager/xml.rb', line 7180

class Sources
  attr_accessor :biomassPct
  attr_accessor :biogasPct
  attr_accessor :geothermalPct
  attr_accessor :smallHydroPct
  attr_accessor :solarPct
  attr_accessor :windPct
  attr_accessor :unknownPct

  def initialize(biomassPct = nil, biogasPct = nil, geothermalPct = nil, smallHydroPct = nil, solarPct = nil, windPct = nil, unknownPct = nil)
    @biomassPct = biomassPct
    @biogasPct = biogasPct
    @geothermalPct = geothermalPct
    @smallHydroPct = smallHydroPct
    @solarPct = solarPct
    @windPct = windPct
    @unknownPct = unknownPct
  end
end

#biomassPctObject

Returns:

  • (Object)


7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
# File 'lib/portfolio_manager/xml.rb', line 7180

class Sources
  attr_accessor :biomassPct
  attr_accessor :biogasPct
  attr_accessor :geothermalPct
  attr_accessor :smallHydroPct
  attr_accessor :solarPct
  attr_accessor :windPct
  attr_accessor :unknownPct

  def initialize(biomassPct = nil, biogasPct = nil, geothermalPct = nil, smallHydroPct = nil, solarPct = nil, windPct = nil, unknownPct = nil)
    @biomassPct = biomassPct
    @biogasPct = biogasPct
    @geothermalPct = geothermalPct
    @smallHydroPct = smallHydroPct
    @solarPct = solarPct
    @windPct = windPct
    @unknownPct = unknownPct
  end
end

#geothermalPctObject

Returns:

  • (Object)


7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
# File 'lib/portfolio_manager/xml.rb', line 7180

class Sources
  attr_accessor :biomassPct
  attr_accessor :biogasPct
  attr_accessor :geothermalPct
  attr_accessor :smallHydroPct
  attr_accessor :solarPct
  attr_accessor :windPct
  attr_accessor :unknownPct

  def initialize(biomassPct = nil, biogasPct = nil, geothermalPct = nil, smallHydroPct = nil, solarPct = nil, windPct = nil, unknownPct = nil)
    @biomassPct = biomassPct
    @biogasPct = biogasPct
    @geothermalPct = geothermalPct
    @smallHydroPct = smallHydroPct
    @solarPct = solarPct
    @windPct = windPct
    @unknownPct = unknownPct
  end
end

#smallHydroPctObject

Returns:

  • (Object)


7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
# File 'lib/portfolio_manager/xml.rb', line 7180

class Sources
  attr_accessor :biomassPct
  attr_accessor :biogasPct
  attr_accessor :geothermalPct
  attr_accessor :smallHydroPct
  attr_accessor :solarPct
  attr_accessor :windPct
  attr_accessor :unknownPct

  def initialize(biomassPct = nil, biogasPct = nil, geothermalPct = nil, smallHydroPct = nil, solarPct = nil, windPct = nil, unknownPct = nil)
    @biomassPct = biomassPct
    @biogasPct = biogasPct
    @geothermalPct = geothermalPct
    @smallHydroPct = smallHydroPct
    @solarPct = solarPct
    @windPct = windPct
    @unknownPct = unknownPct
  end
end

#solarPctObject

Returns:

  • (Object)


7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
# File 'lib/portfolio_manager/xml.rb', line 7180

class Sources
  attr_accessor :biomassPct
  attr_accessor :biogasPct
  attr_accessor :geothermalPct
  attr_accessor :smallHydroPct
  attr_accessor :solarPct
  attr_accessor :windPct
  attr_accessor :unknownPct

  def initialize(biomassPct = nil, biogasPct = nil, geothermalPct = nil, smallHydroPct = nil, solarPct = nil, windPct = nil, unknownPct = nil)
    @biomassPct = biomassPct
    @biogasPct = biogasPct
    @geothermalPct = geothermalPct
    @smallHydroPct = smallHydroPct
    @solarPct = solarPct
    @windPct = windPct
    @unknownPct = unknownPct
  end
end

#unknownPctObject

Returns:

  • (Object)


7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
# File 'lib/portfolio_manager/xml.rb', line 7180

class Sources
  attr_accessor :biomassPct
  attr_accessor :biogasPct
  attr_accessor :geothermalPct
  attr_accessor :smallHydroPct
  attr_accessor :solarPct
  attr_accessor :windPct
  attr_accessor :unknownPct

  def initialize(biomassPct = nil, biogasPct = nil, geothermalPct = nil, smallHydroPct = nil, solarPct = nil, windPct = nil, unknownPct = nil)
    @biomassPct = biomassPct
    @biogasPct = biogasPct
    @geothermalPct = geothermalPct
    @smallHydroPct = smallHydroPct
    @solarPct = solarPct
    @windPct = windPct
    @unknownPct = unknownPct
  end
end

#windPctObject

Returns:

  • (Object)


7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
# File 'lib/portfolio_manager/xml.rb', line 7180

class Sources
  attr_accessor :biomassPct
  attr_accessor :biogasPct
  attr_accessor :geothermalPct
  attr_accessor :smallHydroPct
  attr_accessor :solarPct
  attr_accessor :windPct
  attr_accessor :unknownPct

  def initialize(biomassPct = nil, biogasPct = nil, geothermalPct = nil, smallHydroPct = nil, solarPct = nil, windPct = nil, unknownPct = nil)
    @biomassPct = biomassPct
    @biogasPct = biogasPct
    @geothermalPct = geothermalPct
    @smallHydroPct = smallHydroPct
    @solarPct = solarPct
    @windPct = windPct
    @unknownPct = unknownPct
  end
end