Class: OmniAuth::RecruitMilitary::Configuration
- Inherits:
-
Object
- Object
- OmniAuth::RecruitMilitary::Configuration
- Defined in:
- lib/omniauth/recruitmilitary.rb
Constant Summary collapse
- DEFAULT_SITE =
'http://connect.recruitmilitary.com'- DEFAULT_AUTHORIZE_PATH =
'/oauth/authorize'- DEFAULT_ACCESS_TOKEN_PATH =
'/oauth/access_token'- DEFAULT_USER_DATA_PATH =
'/auth/user.json'
Instance Attribute Summary collapse
-
#access_token_path ⇒ Object
Returns the value of attribute access_token_path.
-
#access_token_url ⇒ Object
Returns the value of attribute access_token_url.
-
#authorize_path ⇒ Object
Returns the value of attribute authorize_path.
-
#authorize_url ⇒ Object
Returns the value of attribute authorize_url.
-
#site ⇒ Object
Returns the value of attribute site.
-
#user_data_path(user_data_path) ⇒ Object
Returns the value of attribute user_data_path.
-
#user_data_url ⇒ Object
Returns the value of attribute user_data_url.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(options = {}) ⇒ Configuration
Returns a new instance of Configuration.
24 25 26 27 28 29 |
# File 'lib/omniauth/recruitmilitary.rb', line 24 def initialize( = {}) @site = .fetch(:site, DEFAULT_SITE) @authorize_path = .fetch(:authorize_path, DEFAULT_AUTHORIZE_PATH) @access_token_path = .fetch(:access_token_path, DEFAULT_ACCESS_TOKEN_PATH) @user_data_path = .fetch(:user_data_path, DEFAULT_USER_DATA_PATH) end |
Instance Attribute Details
#access_token_path ⇒ Object
Returns the value of attribute access_token_path.
22 23 24 |
# File 'lib/omniauth/recruitmilitary.rb', line 22 def access_token_path @access_token_path end |
#access_token_url ⇒ Object
Returns the value of attribute access_token_url.
21 22 23 |
# File 'lib/omniauth/recruitmilitary.rb', line 21 def access_token_url @access_token_url end |
#authorize_path ⇒ Object
Returns the value of attribute authorize_path.
22 23 24 |
# File 'lib/omniauth/recruitmilitary.rb', line 22 def @authorize_path end |
#authorize_url ⇒ Object
Returns the value of attribute authorize_url.
21 22 23 |
# File 'lib/omniauth/recruitmilitary.rb', line 21 def @authorize_url end |
#site ⇒ Object
Returns the value of attribute site.
21 22 23 |
# File 'lib/omniauth/recruitmilitary.rb', line 21 def site @site end |
#user_data_path(user_data_path) ⇒ Object
Returns the value of attribute user_data_path.
22 23 24 |
# File 'lib/omniauth/recruitmilitary.rb', line 22 def user_data_path @user_data_path end |
#user_data_url ⇒ Object
Returns the value of attribute user_data_url.
21 22 23 |
# File 'lib/omniauth/recruitmilitary.rb', line 21 def user_data_url @user_data_url end |