Class: Miteru::Configuration
- Inherits:
-
Object
- Object
- Miteru::Configuration
- Defined in:
- lib/miteru/configuration.rb
Instance Attribute Summary collapse
- #auto_download ⇒ Boolean
- #ayashige ⇒ Boolean
- #directory_traveling ⇒ Boolean
- #download_to ⇒ String
- #post_to_slack ⇒ Boolean
- #size ⇒ Integer
- #threads ⇒ Integer
- #verbose ⇒ Boolean
Instance Method Summary collapse
- #auto_download? ⇒ Boolean
- #ayashige? ⇒ Boolean
- #directory_traveling? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #post_to_slack? ⇒ Boolean
- #verbose? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/miteru/configuration.rb', line 31 def initialize @auto_download = false @ayashige = false @directory_traveling = false @download_to = "/tmp" @post_to_slack = false @size = 100 @threads = Parallel.processor_count @verbose = false end |
Instance Attribute Details
#auto_download ⇒ Boolean
8 9 10 |
# File 'lib/miteru/configuration.rb', line 8 def auto_download @auto_download end |
#ayashige ⇒ Boolean
11 12 13 |
# File 'lib/miteru/configuration.rb', line 11 def ayashige @ayashige end |
#directory_traveling ⇒ Boolean
14 15 16 |
# File 'lib/miteru/configuration.rb', line 14 def directory_traveling @directory_traveling end |
#download_to ⇒ String
17 18 19 |
# File 'lib/miteru/configuration.rb', line 17 def download_to @download_to end |
#post_to_slack ⇒ Boolean
20 21 22 |
# File 'lib/miteru/configuration.rb', line 20 def post_to_slack @post_to_slack end |
#size ⇒ Integer
23 24 25 |
# File 'lib/miteru/configuration.rb', line 23 def size @size end |
#threads ⇒ Integer
26 27 28 |
# File 'lib/miteru/configuration.rb', line 26 def threads @threads end |
#verbose ⇒ Boolean
29 30 31 |
# File 'lib/miteru/configuration.rb', line 29 def verbose @verbose end |
Instance Method Details
#auto_download? ⇒ Boolean
42 43 44 |
# File 'lib/miteru/configuration.rb', line 42 def auto_download? @auto_download end |
#ayashige? ⇒ Boolean
46 47 48 |
# File 'lib/miteru/configuration.rb', line 46 def ayashige? @ayashige end |
#directory_traveling? ⇒ Boolean
50 51 52 |
# File 'lib/miteru/configuration.rb', line 50 def directory_traveling? @directory_traveling end |
#post_to_slack? ⇒ Boolean
54 55 56 |
# File 'lib/miteru/configuration.rb', line 54 def post_to_slack? @post_to_slack end |
#verbose? ⇒ Boolean
58 59 60 |
# File 'lib/miteru/configuration.rb', line 58 def verbose? @verbose end |