Class: LineChange::Configuration::App
- Inherits:
-
Object
- Object
- LineChange::Configuration::App
- Defined in:
- lib/line_change/configuration.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
(also: #env)
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #app_id ⇒ Object
-
#initialize(name, config) ⇒ App
constructor
A new instance of App.
- #path ⇒ Object
Constructor Details
#initialize(name, config) ⇒ App
Returns a new instance of App.
30 31 32 |
# File 'lib/line_change/configuration.rb', line 30 def initialize(name, config) @name, @config = name.to_s, normalize(config) end |
Instance Attribute Details
#name ⇒ Object (readonly) Also known as: env
Returns the value of attribute name.
27 28 29 |
# File 'lib/line_change/configuration.rb', line 27 def name @name end |
Instance Method Details
#app_id ⇒ Object
34 35 36 |
# File 'lib/line_change/configuration.rb', line 34 def app_id @config[:app_id] || @config["app_id"] end |
#path ⇒ Object
38 39 40 |
# File 'lib/line_change/configuration.rb', line 38 def path @config[:path] || @config["path"] end |