Module: CoverMyMeds
- Defined in:
- lib/cover_my_meds.rb,
lib/cover_my_meds/error.rb,
lib/cover_my_meds/client.rb,
lib/cover_my_meds/railtie.rb,
lib/cover_my_meds/version.rb,
lib/cover_my_meds/api_request.rb,
lib/cover_my_meds/client/drugs.rb,
lib/cover_my_meds/client/forms.rb,
lib/cover_my_meds/client/tokens.rb,
lib/cover_my_meds/client/requests.rb,
lib/cover_my_meds/client/indicators.rb,
lib/cover_my_meds/client/credentials.rb,
lib/cover_my_meds/meta/host_and_path.rb,
lib/cover_my_meds/client/request_pages.rb
Defined Under Namespace
Modules: ApiRequest, Credentials, Drugs, Error, Forms, HostAndPath, Indicators, RequestPages, Requests, Tokens
Classes: Client, Railtie
Constant Summary
collapse
- GET =
'get'.freeze
- POST =
'post'.freeze
- PUT =
'put'.freeze
- DELETE =
'delete'.freeze
- VERSION =
"2.0.3"
Class Method Summary
collapse
Class Method Details
.default_client ⇒ Object
18
19
20
21
22
23
24
25
|
# File 'lib/cover_my_meds.rb', line 18
def self.default_client
if defined?(Railtie)
Railtie.instance.default_client
else
Client.new ENV['CMM_API_ID'], ENV['CMM_API_SECRET']
end
end
|
.version ⇒ Object
14
15
16
|
# File 'lib/cover_my_meds.rb', line 14
def self.version
"CoverMyMeds version #{CoverMyMeds::VERSION}"
end
|