Class: MnoEnterprise::Router
- Inherits:
-
Object
- Object
- MnoEnterprise::Router
- Defined in:
- lib/mno_enterprise/core.rb
Overview
MnoEnterprise Router Centralizes all URLs available on the Maestrano Enterprise side
Instance Attribute Summary collapse
-
#after_sign_out_url ⇒ Object
Customise after_sign_out url.
-
#terms_url ⇒ Object
Returns the value of attribute terms_url.
Instance Method Summary collapse
- #authorize_oauth_url(id, opts = {}) ⇒ Object
- #disconnect_oauth_url(id, opts = {}) ⇒ Object
- #impac_root_url ⇒ Object
- #launch_url(id, opts = {}) ⇒ Object
- #sync_oauth_url(id, opts = {}) ⇒ Object
Instance Attribute Details
#after_sign_out_url ⇒ Object
Customise after_sign_out url
41 42 43 |
# File 'lib/mno_enterprise/core.rb', line 41 def after_sign_out_url @after_sign_out_url end |
#terms_url ⇒ Object
Returns the value of attribute terms_url.
38 39 40 |
# File 'lib/mno_enterprise/core.rb', line 38 def terms_url @terms_url end |
Instance Method Details
#authorize_oauth_url(id, opts = {}) ⇒ Object
51 52 53 |
# File 'lib/mno_enterprise/core.rb', line 51 def (id,opts = {}) host_url("/oauth/#{id}/authorize",opts) end |
#disconnect_oauth_url(id, opts = {}) ⇒ Object
55 56 57 |
# File 'lib/mno_enterprise/core.rb', line 55 def disconnect_oauth_url(id,opts = {}) host_url("/oauth/#{id}/disconnect",opts) end |
#impac_root_url ⇒ Object
63 64 65 |
# File 'lib/mno_enterprise/core.rb', line 63 def impac_root_url URI.join(MnoEnterprise.impac_api_host,MnoEnterprise.impac_api_root_path) end |
#launch_url(id, opts = {}) ⇒ Object
47 48 49 |
# File 'lib/mno_enterprise/core.rb', line 47 def launch_url(id,opts = {}) host_url("/launch/#{id}",opts) end |
#sync_oauth_url(id, opts = {}) ⇒ Object
59 60 61 |
# File 'lib/mno_enterprise/core.rb', line 59 def sync_oauth_url(id,opts = {}) host_url("/oauth/#{id}/sync",opts) end |