Class: Miteru::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_downloadBoolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/miteru/configuration.rb', line 8

def auto_download
  @auto_download
end

#ayashigeBoolean

Returns:

  • (Boolean)


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

def ayashige
  @ayashige
end

#directory_travelingBoolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/miteru/configuration.rb', line 14

def directory_traveling
  @directory_traveling
end

#download_toString

Returns:

  • (String)


17
18
19
# File 'lib/miteru/configuration.rb', line 17

def download_to
  @download_to
end

#post_to_slackBoolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/miteru/configuration.rb', line 20

def post_to_slack
  @post_to_slack
end

#sizeInteger

Returns:

  • (Integer)


23
24
25
# File 'lib/miteru/configuration.rb', line 23

def size
  @size
end

#threadsInteger

Returns:

  • (Integer)


26
27
28
# File 'lib/miteru/configuration.rb', line 26

def threads
  @threads
end

#verboseBoolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/miteru/configuration.rb', line 29

def verbose
  @verbose
end

Instance Method Details

#auto_download?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/miteru/configuration.rb', line 42

def auto_download?
  @auto_download
end

#ayashige?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/miteru/configuration.rb', line 46

def ayashige?
  @ayashige
end

#directory_traveling?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/miteru/configuration.rb', line 50

def directory_traveling?
  @directory_traveling
end

#post_to_slack?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/miteru/configuration.rb', line 54

def post_to_slack?
  @post_to_slack
end

#verbose?Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/miteru/configuration.rb', line 58

def verbose?
  @verbose
end