Module: Authy
- Defined in:
- lib/authy/api.rb,
lib/authy/config.rb,
lib/authy/version.rb,
lib/authy/onetouch.rb,
lib/authy/response.rb,
lib/authy/models/user.rb,
lib/authy/url_helpers.rb,
lib/authy/phone_intelligence.rb,
lib/authy/phone_verification.rb
Defined Under Namespace
Modules: URL
Classes: API, OneTouch, PhoneIntelligence, PhoneVerification, Response, User
Constant Summary
collapse
- AUTHY_LOGGER =
Logger.new(STDOUT)
- VERSION =
"2.7.5"
Class Method Summary
collapse
Class Method Details
.api_key ⇒ Object
7
8
9
|
# File 'lib/authy/config.rb', line 7
def api_key
@api_key || ENV["AUTHY_API_KEY"]
end
|
.api_key=(key) ⇒ Object
3
4
5
|
# File 'lib/authy/config.rb', line 3
def api_key=(key)
@api_key = key
end
|
.api_uri ⇒ Object
Also known as:
api_url
16
17
18
|
# File 'lib/authy/config.rb', line 16
def api_uri
@api_uri || "https://api.authy.com"
end
|
.api_uri=(uri) ⇒ Object
Also known as:
api_url=
11
12
13
|
# File 'lib/authy/config.rb', line 11
def api_uri=(uri)
@api_uri = uri
end
|
.user_agent ⇒ Object
21
22
23
|
# File 'lib/authy/config.rb', line 21
def user_agent
@user_agent || "AuthyRuby/#{Authy::VERSION} (#{RUBY_PLATFORM}, Ruby #{RUBY_VERSION})"
end
|
.user_agent=(user_agent) ⇒ Object
25
26
27
|
# File 'lib/authy/config.rb', line 25
def user_agent=(user_agent)
@user_agent = user_agent
end
|