Class: DefraRuby::Area::BaseAreaService

Inherits:
Object
  • Object
show all
Defined in:
lib/defra_ruby/area/services/base_area_service.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(easting, northing) ⇒ BaseAreaService

Returns a new instance of BaseAreaService.



14
15
16
17
# File 'lib/defra_ruby/area/services/base_area_service.rb', line 14

def initialize(easting, northing)
  @easting = easting
  @northing = northing
end

Class Method Details

.run(easting, northing) ⇒ Object



10
11
12
# File 'lib/defra_ruby/area/services/base_area_service.rb', line 10

def self.run(easting, northing)
  new(easting, northing).run
end

Instance Method Details

#runObject



19
20
21
# File 'lib/defra_ruby/area/services/base_area_service.rb', line 19

def run
  Response.new(response_exe)
end