Class: Neverland::ParameterExtractor

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ ParameterExtractor

Returns a new instance of ParameterExtractor.



7
8
9
# File 'lib/neverland/parameter_extractor.rb', line 7

def initialize(env)
  @request = Rack::Request.new(env)
end

Class Method Details

.extract(env) ⇒ Object



3
4
5
# File 'lib/neverland/parameter_extractor.rb', line 3

def self.extract(env)
  new(env).extract
end

Instance Method Details

#extractObject



11
12
13
# File 'lib/neverland/parameter_extractor.rb', line 11

def extract
  Parameters.new(latitude, longitude, error_code)
end