Class: ItunesConnect::RcFile
- Inherits:
-
Object
- Object
- ItunesConnect::RcFile
- Defined in:
- lib/itunes_connect/rc_file.rb
Overview
:nodoc:
Constant Summary collapse
- DEFAULT_RCFILE_PATH =
File.("~/.itunesrc")
Class Method Summary collapse
Instance Method Summary collapse
- #database ⇒ Object
-
#initialize(path = DEFAULT_RCFILE_PATH) ⇒ RcFile
constructor
A new instance of RcFile.
- #password ⇒ Object
- #username ⇒ Object
Constructor Details
#initialize(path = DEFAULT_RCFILE_PATH) ⇒ RcFile
Returns a new instance of RcFile.
11 12 13 14 15 16 17 |
# File 'lib/itunes_connect/rc_file.rb', line 11 def initialize(path=DEFAULT_RCFILE_PATH) if File.exist?(path) @rc = YAML.load_file(path) else @rc = { } end end |
Class Method Details
.default ⇒ Object
7 8 9 |
# File 'lib/itunes_connect/rc_file.rb', line 7 def self.default self.new(DEFAULT_RCFILE_PATH) end |
Instance Method Details
#database ⇒ Object
27 28 29 |
# File 'lib/itunes_connect/rc_file.rb', line 27 def database @rc[:database] end |
#password ⇒ Object
23 24 25 |
# File 'lib/itunes_connect/rc_file.rb', line 23 def password @rc[:password] end |
#username ⇒ Object
19 20 21 |
# File 'lib/itunes_connect/rc_file.rb', line 19 def username @rc[:username] end |