Class: Calpack::Configuration
- Inherits:
-
Object
- Object
- Calpack::Configuration
- Defined in:
- lib/calpack/configuration.rb
Overview
All configuration including auth info and base URI for the API access are configured in this class.
Defined Under Namespace
Classes: Environment, Server
Class Attribute Summary collapse
-
.array_serialization ⇒ Object
Returns the value of attribute array_serialization.
-
.environment ⇒ Object
Returns the value of attribute environment.
-
.environments ⇒ Object
Returns the value of attribute environments.
Class Method Summary collapse
-
.get_base_uri(server = Server::CALCULATOR) ⇒ String
Generates the appropriate base URI for the environment and the server.
Class Attribute Details
.array_serialization ⇒ Object
Returns the value of attribute array_serialization.
46 47 48 |
# File 'lib/calpack/configuration.rb', line 46 def array_serialization @array_serialization end |
.environment ⇒ Object
Returns the value of attribute environment.
47 48 49 |
# File 'lib/calpack/configuration.rb', line 47 def environment @environment end |
.environments ⇒ Object
Returns the value of attribute environments.
48 49 50 |
# File 'lib/calpack/configuration.rb', line 48 def environments @environments end |