Class: Settings
- Inherits:
-
Object
- Object
- Settings
- Defined in:
- lib/pitcher/settings.rb
Instance Attribute Summary collapse
-
#cdmurl ⇒ Object
Returns the value of attribute cdmurl.
-
#license ⇒ Object
Returns the value of attribute license.
-
#password ⇒ Object
Returns the value of attribute password.
-
#settings ⇒ Object
Returns the value of attribute settings.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(file) ⇒ Settings
constructor
A new instance of Settings.
Constructor Details
#initialize(file) ⇒ Settings
Returns a new instance of Settings.
10 11 12 13 14 15 16 |
# File 'lib/pitcher/settings.rb', line 10 def initialize(file) settings = YAML.load_file(file) @cdmurl = settings['cdmurl'] @username = settings['username'] @password = settings['password'] @license = settings['license'] end |
Instance Attribute Details
#cdmurl ⇒ Object
Returns the value of attribute cdmurl.
4 5 6 |
# File 'lib/pitcher/settings.rb', line 4 def cdmurl @cdmurl end |
#license ⇒ Object
Returns the value of attribute license.
7 8 9 |
# File 'lib/pitcher/settings.rb', line 7 def license @license end |
#password ⇒ Object
Returns the value of attribute password.
6 7 8 |
# File 'lib/pitcher/settings.rb', line 6 def password @password end |
#settings ⇒ Object
Returns the value of attribute settings.
8 9 10 |
# File 'lib/pitcher/settings.rb', line 8 def settings @settings end |
#username ⇒ Object
Returns the value of attribute username.
5 6 7 |
# File 'lib/pitcher/settings.rb', line 5 def username @username end |