Class: Gonebusy::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/gonebusy/configuration.rb

Defined Under Namespace

Classes: Environment, Server

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.array_serializationObject

Returns the value of attribute array_serialization.



45
46
47
# File 'lib/gonebusy/configuration.rb', line 45

def array_serialization
  @array_serialization
end

.authorizationObject

Returns the value of attribute authorization.



48
49
50
# File 'lib/gonebusy/configuration.rb', line 48

def authorization
  @authorization
end

.environmentObject

Returns the value of attribute environment.



46
47
48
# File 'lib/gonebusy/configuration.rb', line 46

def environment
  @environment
end

.environmentsObject

Returns the value of attribute environments.



47
48
49
# File 'lib/gonebusy/configuration.rb', line 47

def environments
  @environments
end

Class Method Details

.get_base_uri(server = Server::DEFAULT) ⇒ String

Generates the appropriate base URI for the environment and the server.

Parameters:

Returns:



39
40
41
# File 'lib/gonebusy/configuration.rb', line 39

def self.get_base_uri(server = Server::DEFAULT)
  environments[environment][server]
end