Class: Neverland::ParameterExtractor
- Inherits:
-
Object
- Object
- Neverland::ParameterExtractor
- Defined in:
- lib/neverland/parameter_extractor.rb
Class Method Summary collapse
Instance Method Summary collapse
- #extract ⇒ Object
-
#initialize(env) ⇒ ParameterExtractor
constructor
A new instance of ParameterExtractor.
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
#extract ⇒ Object
11 12 13 |
# File 'lib/neverland/parameter_extractor.rb', line 11 def extract Parameters.new(latitude, longitude, error_code) end |