Class: Location
- Inherits:
-
Object
- Object
- Location
- Defined in:
- lib/PVLIB_Ruby/models/location.rb
Instance Attribute Summary collapse
-
#altitude ⇒ Object
Returns the value of attribute altitude.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
Instance Method Summary collapse
-
#initialize(latitude, longitude, altitude) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(latitude, longitude, altitude) ⇒ Location
Returns a new instance of Location.
5 6 7 8 9 |
# File 'lib/PVLIB_Ruby/models/location.rb', line 5 def initialize(latitude, longitude, altitude) @latitude = latitude @longitude = longitude @altitude = altitude end |
Instance Attribute Details
#altitude ⇒ Object
Returns the value of attribute altitude.
3 4 5 |
# File 'lib/PVLIB_Ruby/models/location.rb', line 3 def altitude @altitude end |
#latitude ⇒ Object
Returns the value of attribute latitude.
3 4 5 |
# File 'lib/PVLIB_Ruby/models/location.rb', line 3 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
3 4 5 |
# File 'lib/PVLIB_Ruby/models/location.rb', line 3 def longitude @longitude end |