Class: Powcloud::Insurance::HttpService::HttpServiceBase

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/powcloud/insurance/http_service.rb

Overview

Establish base case for http services, useful for later patching which doesn’t touch Sinatra::Base.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.agentObject



9
10
11
# File 'lib/powcloud/insurance/http_service.rb', line 9

def self.agent
  self.send :class_variable_get, :@@agent
end

Instance Method Details

#agentObject



13
14
15
# File 'lib/powcloud/insurance/http_service.rb', line 13

def agent
  self.class.agent
end