Class: Mediaflux::Connection
- Inherits:
-
Object
- Object
- Mediaflux::Connection
- Defined in:
- app/models/mediaflux/connection.rb
Class Method Summary collapse
- .hidden_root ⇒ Object
-
.host ⇒ String
The host nome for the Mediaflux server.
-
.port ⇒ Integer
The host port for the Mediaflux server.
- .root_collection ⇒ Object
- .root_collection_name ⇒ Object
- .root_collection_namespace ⇒ Object
- .root_namespace ⇒ Object
-
.transport ⇒ String
The host transport for the Mediaflux server.
Class Method Details
.hidden_root ⇒ Object
66 67 68 69 70 71 72 |
# File 'app/models/mediaflux/connection.rb', line 66 def self.hidden_root if Flipflop.alternate_mediaflux? Rails.configuration.mediaflux["api_alternate_hidden_root"] else Rails.configuration.mediaflux["api_hidden_root"] end end |
.host ⇒ String
The host nome for the Mediaflux server
6 7 8 9 10 11 12 |
# File 'app/models/mediaflux/connection.rb', line 6 def self.host if Flipflop.alternate_mediaflux? Rails.configuration.mediaflux["api_alternate_host"] else Rails.configuration.mediaflux["api_host"] end end |
.port ⇒ Integer
The host port for the Mediaflux server
16 17 18 19 20 21 22 |
# File 'app/models/mediaflux/connection.rb', line 16 def self.port if Flipflop.alternate_mediaflux? Rails.configuration.mediaflux["api_alternate_port"].to_i else Rails.configuration.mediaflux["api_port"].to_i end end |
.root_collection ⇒ Object
34 35 36 37 38 39 40 |
# File 'app/models/mediaflux/connection.rb', line 34 def self.root_collection if Flipflop.alternate_mediaflux? Rails.configuration.mediaflux["api_alternate_root_collection"] else Rails.configuration.mediaflux["api_root_collection"] end end |
.root_collection_name ⇒ Object
50 51 52 53 54 55 56 |
# File 'app/models/mediaflux/connection.rb', line 50 def self.root_collection_name if Flipflop.alternate_mediaflux? Rails.configuration.mediaflux["api_alternate_root_collection_name"] else Rails.configuration.mediaflux["api_root_collection_name"] end end |
.root_collection_namespace ⇒ Object
42 43 44 45 46 47 48 |
# File 'app/models/mediaflux/connection.rb', line 42 def self.root_collection_namespace if Flipflop.alternate_mediaflux? Rails.configuration.mediaflux["api_alternate_root_collection_namespace"] else Rails.configuration.mediaflux["api_root_collection_namespace"] end end |
.root_namespace ⇒ Object
58 59 60 61 62 63 64 |
# File 'app/models/mediaflux/connection.rb', line 58 def self.root_namespace if Flipflop.alternate_mediaflux? Rails.configuration.mediaflux["api_alternate_root_ns"] else Rails.configuration.mediaflux["api_root_ns"] end end |
.transport ⇒ String
The host transport for the Mediaflux server
26 27 28 29 30 31 32 |
# File 'app/models/mediaflux/connection.rb', line 26 def self.transport if Flipflop.alternate_mediaflux? Rails.configuration.mediaflux["api_alternate_transport"] else Rails.configuration.mediaflux["api_transport"] end end |