Class: Application::Configuration::Location
- Defined in:
- lib/application_configuration.rb
Constant Summary collapse
- FILE =
:file
- URL =
:url
Instance Attribute Summary collapse
-
#file_location ⇒ Object
Returns the value of attribute file_location.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(loc, type = Application::Configuration::Location::FILE) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(loc, type = Application::Configuration::Location::FILE) ⇒ Location
Returns a new instance of Location.
33 34 35 36 |
# File 'lib/application_configuration.rb', line 33 def initialize(loc, type = Application::Configuration::Location::FILE) self.type = type self.file_location = loc end |
Instance Attribute Details
#file_location ⇒ Object
Returns the value of attribute file_location.
31 32 33 |
# File 'lib/application_configuration.rb', line 31 def file_location @file_location end |
#type ⇒ Object
Returns the value of attribute type.
30 31 32 |
# File 'lib/application_configuration.rb', line 30 def type @type end |
Class Method Details
.supported_types ⇒ Object
38 39 40 |
# File 'lib/application_configuration.rb', line 38 def self.supported_types [Application::Configuration::Location::FILE, Application::Configuration::Location::URL] end |