Class: Eeml::Location

Inherits:
Object show all
Defined in:
lib/eeml/environment.rb

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

Instance Method Summary collapse

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(options = {})
  @name = options[:name]
  @latitude = options[:latitude]
  @longitude = options[:longitude]
  @elevation = options[:elevation]
  @domain = options[:domain]
  @exposure = options[:exposure]
  @disposition = options[:disposition]
end

Instance Attribute Details

#dispositionObject

Returns the value of attribute disposition.



8
9
10
# File 'lib/eeml/environment.rb', line 8

def disposition
  @disposition
end

#domainObject

Returns the value of attribute domain.



8
9
10
# File 'lib/eeml/environment.rb', line 8

def domain
  @domain
end

#elevationObject

Returns the value of attribute elevation.



7
8
9
# File 'lib/eeml/environment.rb', line 7

def elevation
  @elevation
end

#exposureObject

Returns the value of attribute exposure.



8
9
10
# File 'lib/eeml/environment.rb', line 8

def exposure
  @exposure
end

#latitudeObject

Returns the value of attribute latitude.



7
8
9
# File 'lib/eeml/environment.rb', line 7

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



7
8
9
# File 'lib/eeml/environment.rb', line 7

def longitude
  @longitude
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/eeml/environment.rb', line 7

def name
  @name
end