Class: CZDS::Configuration
- Inherits:
-
Object
- Object
- CZDS::Configuration
- Defined in:
- lib/czds/configuration.rb
Constant Summary collapse
Instance Attribute Summary collapse
-
#download_dir ⇒ Object
Returns the value of attribute download_dir.
-
#password ⇒ Object
Returns the value of attribute password.
-
#timestamp_file_name ⇒ Object
Returns the value of attribute timestamp_file_name.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 |
# File 'lib/czds/configuration.rb', line 13 def initialize @download_dir = DEFAULTS[:download_dir] @timestamp_file_name = true @user_agent = DEFAULTS[:user_agent] end |
Instance Attribute Details
#download_dir ⇒ Object
Returns the value of attribute download_dir.
11 12 13 |
# File 'lib/czds/configuration.rb', line 11 def download_dir @download_dir end |
#password ⇒ Object
Returns the value of attribute password.
11 12 13 |
# File 'lib/czds/configuration.rb', line 11 def password @password end |
#timestamp_file_name ⇒ Object
Returns the value of attribute timestamp_file_name.
11 12 13 |
# File 'lib/czds/configuration.rb', line 11 def @timestamp_file_name end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
11 12 13 |
# File 'lib/czds/configuration.rb', line 11 def user_agent @user_agent end |
#username ⇒ Object
Returns the value of attribute username.
11 12 13 |
# File 'lib/czds/configuration.rb', line 11 def username @username end |