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.



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

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

Class Method Details

.run(easting, northing) ⇒ Object



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

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

Instance Method Details

#runObject



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

def run
  Response.new(response_exe)
end