Class: LoaderRuby::Configuration
- Inherits:
-
Object
- Object
- LoaderRuby::Configuration
- Defined in:
- lib/loader_ruby/configuration.rb
Instance Attribute Summary collapse
-
#default_encoding ⇒ Object
Returns the value of attribute default_encoding.
-
#http_timeout ⇒ Object
Returns the value of attribute http_timeout.
-
#max_file_size ⇒ Object
Returns the value of attribute max_file_size.
-
#web_user_agent ⇒ Object
Returns the value of attribute web_user_agent.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 |
# File 'lib/loader_ruby/configuration.rb', line 8 def initialize @default_encoding = "UTF-8" @max_file_size = 100 * 1024 * 1024 @http_timeout = 30 @web_user_agent = "LoaderRuby/#{VERSION}" end |
Instance Attribute Details
#default_encoding ⇒ Object
Returns the value of attribute default_encoding.
5 6 7 |
# File 'lib/loader_ruby/configuration.rb', line 5 def default_encoding @default_encoding end |
#http_timeout ⇒ Object
Returns the value of attribute http_timeout.
5 6 7 |
# File 'lib/loader_ruby/configuration.rb', line 5 def http_timeout @http_timeout end |
#max_file_size ⇒ Object
Returns the value of attribute max_file_size.
5 6 7 |
# File 'lib/loader_ruby/configuration.rb', line 5 def max_file_size @max_file_size end |
#web_user_agent ⇒ Object
Returns the value of attribute web_user_agent.
5 6 7 |
# File 'lib/loader_ruby/configuration.rb', line 5 def web_user_agent @web_user_agent end |