Class: CZDS::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/czds/configuration.rb

Constant Summary collapse

DEFAULTS =
{
  user_agent: "czds/#{CZDS::VERSION} (Ruby Client)",
  tld: "com",
  download_dir: "./"
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_dirObject

Returns the value of attribute download_dir.



11
12
13
# File 'lib/czds/configuration.rb', line 11

def download_dir
  @download_dir
end

#passwordObject

Returns the value of attribute password.



11
12
13
# File 'lib/czds/configuration.rb', line 11

def password
  @password
end

#timestamp_file_nameObject

Returns the value of attribute timestamp_file_name.



11
12
13
# File 'lib/czds/configuration.rb', line 11

def timestamp_file_name
  @timestamp_file_name
end

#user_agentObject

Returns the value of attribute user_agent.



11
12
13
# File 'lib/czds/configuration.rb', line 11

def user_agent
  @user_agent
end

#usernameObject

Returns the value of attribute username.



11
12
13
# File 'lib/czds/configuration.rb', line 11

def username
  @username
end