Class: Mediaflux::Connection

Inherits:
Object
  • Object
show all
Defined in:
app/models/mediaflux/connection.rb

Class Method Summary collapse

Class Method Details

.hidden_rootObject



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

.hostString

The host nome for the Mediaflux server

Returns:

  • (String)


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

.portInteger

The host port for the Mediaflux server

Returns:

  • (Integer)


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_collectionObject



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_nameObject



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_namespaceObject



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_namespaceObject



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

.transportString

The host transport for the Mediaflux server

Returns:

  • (String)


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