Class: MajortomConnector::Config
- Inherits:
-
Object
- Object
- MajortomConnector::Config
- Defined in:
- lib/majortom_connector/config.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#context ⇒ Object
Returns the value of attribute context.
-
#host ⇒ Object
Returns the value of attribute host.
-
#map_id ⇒ Object
Returns the value of attribute map_id.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #ready? ⇒ Boolean
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 |
# File 'lib/majortom_connector/config.rb', line 6 def initialize load_server_config end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
4 5 6 |
# File 'lib/majortom_connector/config.rb', line 4 def api_key @api_key end |
#context ⇒ Object
Returns the value of attribute context.
4 5 6 |
# File 'lib/majortom_connector/config.rb', line 4 def context @context end |
#host ⇒ Object
Returns the value of attribute host.
4 5 6 |
# File 'lib/majortom_connector/config.rb', line 4 def host @host end |
#map_id ⇒ Object
Returns the value of attribute map_id.
4 5 6 |
# File 'lib/majortom_connector/config.rb', line 4 def map_id @map_id end |
#port ⇒ Object
Returns the value of attribute port.
4 5 6 |
# File 'lib/majortom_connector/config.rb', line 4 def port @port end |
Instance Method Details
#ready? ⇒ Boolean
10 11 12 |
# File 'lib/majortom_connector/config.rb', line 10 def ready? !(@host.blank? || @port.blank? || @context.blank? || @api_key.blank?) end |