Class: Settings

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cdmurlObject

Returns the value of attribute cdmurl.



4
5
6
# File 'lib/pitcher/settings.rb', line 4

def cdmurl
  @cdmurl
end

#licenseObject

Returns the value of attribute license.



7
8
9
# File 'lib/pitcher/settings.rb', line 7

def license
  @license
end

#passwordObject

Returns the value of attribute password.



6
7
8
# File 'lib/pitcher/settings.rb', line 6

def password
  @password
end

#settingsObject

Returns the value of attribute settings.



8
9
10
# File 'lib/pitcher/settings.rb', line 8

def settings
  @settings
end

#usernameObject

Returns the value of attribute username.



5
6
7
# File 'lib/pitcher/settings.rb', line 5

def username
  @username
end