Class: Neverland::Parameters

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(latitude = nil, longitude = nil, error_code = nil) ⇒ Parameters

Returns a new instance of Parameters.



41
42
43
44
45
# File 'lib/neverland/parameter_extractor.rb', line 41

def initialize(latitude = nil, longitude = nil, error_code = nil)
  @latitude = latitude
  @longitude = longitude
  @error_code = error_code
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



39
40
41
# File 'lib/neverland/parameter_extractor.rb', line 39

def error_code
  @error_code
end

#latitudeObject (readonly)

Returns the value of attribute latitude.



39
40
41
# File 'lib/neverland/parameter_extractor.rb', line 39

def latitude
  @latitude
end

#longitudeObject (readonly)

Returns the value of attribute longitude.



39
40
41
# File 'lib/neverland/parameter_extractor.rb', line 39

def longitude
  @longitude
end