Class: Eeml::Location
Overview
One of the component classes of Environment. Represents the location of the environment. Environments can only have a single location object.
Instance Attribute Summary collapse
-
#disposition ⇒ Object
Returns the value of attribute disposition.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#elevation ⇒ Object
Returns the value of attribute elevation.
-
#exposure ⇒ Object
Returns the value of attribute exposure.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(options = {}) ⇒ Location
Returns a new instance of Location.
10 11 12 13 14 15 16 17 18 |
# File 'lib/eeml/environment.rb', line 10 def initialize( = {}) @name = [:name] @latitude = [:latitude] @longitude = [:longitude] @elevation = [:elevation] @domain = [:domain] @exposure = [:exposure] @disposition = [:disposition] end |
Instance Attribute Details
#disposition ⇒ Object
Returns the value of attribute disposition.
8 9 10 |
# File 'lib/eeml/environment.rb', line 8 def disposition @disposition end |
#domain ⇒ Object
Returns the value of attribute domain.
8 9 10 |
# File 'lib/eeml/environment.rb', line 8 def domain @domain end |
#elevation ⇒ Object
Returns the value of attribute elevation.
7 8 9 |
# File 'lib/eeml/environment.rb', line 7 def elevation @elevation end |
#exposure ⇒ Object
Returns the value of attribute exposure.
8 9 10 |
# File 'lib/eeml/environment.rb', line 8 def exposure @exposure end |
#latitude ⇒ Object
Returns the value of attribute latitude.
7 8 9 |
# File 'lib/eeml/environment.rb', line 7 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
7 8 9 |
# File 'lib/eeml/environment.rb', line 7 def longitude @longitude end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/eeml/environment.rb', line 7 def name @name end |