Class: Application::Configuration::Location

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

Constant Summary collapse

FILE =
:file
URL =
:url

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_locationObject

Returns the value of attribute file_location.



31
32
33
# File 'lib/application_configuration.rb', line 31

def file_location
  @file_location
end

#typeObject

Returns the value of attribute type.



30
31
32
# File 'lib/application_configuration.rb', line 30

def type
  @type
end

Class Method Details

.supported_typesObject



38
39
40
# File 'lib/application_configuration.rb', line 38

def self.supported_types
  [Application::Configuration::Location::FILE, Application::Configuration::Location::URL]
end