Class: Options
- Inherits:
-
Struct
- Object
- Struct
- Options
- Defined in:
- lib/get_tapas/options.rb
Constant Summary collapse
- DEFAULT_TAPAS_DIR =
'~/ruby-tapas'
Instance Attribute Summary collapse
-
#data_dir ⇒ Object
Returns the value of attribute data_dir.
-
#input_spec ⇒ Object
Returns the value of attribute input_spec.
-
#max_episode_num ⇒ Object
Returns the value of attribute max_episode_num.
-
#min_episode_num ⇒ Object
Returns the value of attribute min_episode_num.
-
#no_op ⇒ Object
Returns the value of attribute no_op.
-
#reverse ⇒ Object
Returns the value of attribute reverse.
-
#sleep_interval ⇒ Object
Returns the value of attribute sleep_interval.
Instance Method Summary collapse
-
#initialize ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize ⇒ Options
Returns a new instance of Options.
13 14 15 16 |
# File 'lib/get_tapas/options.rb', line 13 def initialize super self.data_dir ||= DEFAULT_TAPAS_DIR end |
Instance Attribute Details
#data_dir ⇒ Object
Returns the value of attribute data_dir
1 2 3 |
# File 'lib/get_tapas/options.rb', line 1 def data_dir @data_dir end |
#input_spec ⇒ Object
Returns the value of attribute input_spec
1 2 3 |
# File 'lib/get_tapas/options.rb', line 1 def input_spec @input_spec end |
#max_episode_num ⇒ Object
Returns the value of attribute max_episode_num
1 2 3 |
# File 'lib/get_tapas/options.rb', line 1 def max_episode_num @max_episode_num end |
#min_episode_num ⇒ Object
Returns the value of attribute min_episode_num
1 2 3 |
# File 'lib/get_tapas/options.rb', line 1 def min_episode_num @min_episode_num end |
#no_op ⇒ Object
Returns the value of attribute no_op
1 2 3 |
# File 'lib/get_tapas/options.rb', line 1 def no_op @no_op end |
#reverse ⇒ Object
Returns the value of attribute reverse
1 2 3 |
# File 'lib/get_tapas/options.rb', line 1 def reverse @reverse end |
#sleep_interval ⇒ Object
Returns the value of attribute sleep_interval
1 2 3 |
# File 'lib/get_tapas/options.rb', line 1 def sleep_interval @sleep_interval end |