Class: CoachZed::Config
- Inherits:
-
Object
- Object
- CoachZed::Config
- Defined in:
- lib/coach_zed.rb,
sig/coach_zed.rbs
Instance Attribute Summary collapse
-
#existing_feed_path ⇒ String?
Returns the value of attribute existing_feed_path.
-
#existing_schedule_path ⇒ String?
Returns the value of attribute existing_schedule_path.
-
#feed_output_basename ⇒ String?
Returns the value of attribute feed_output_basename.
-
#feed_title ⇒ String?
Returns the value of attribute feed_title.
-
#merge_policy ⇒ String?
Returns the value of attribute merge_policy.
-
#model ⇒ String?
Returns the value of attribute model.
-
#output_dir ⇒ String?
Returns the value of attribute output_dir.
-
#workout_catalog_dir ⇒ String?
Returns the value of attribute workout_catalog_dir.
Instance Method Summary collapse
- #apply(hash) ⇒ void
-
#initialize(workout_catalog_dir: nil, model: nil, output_dir: nil, feed_output_basename: nil, feed_title: nil, existing_feed_path: nil, existing_schedule_path: nil, merge_policy: nil) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(workout_catalog_dir: nil, model: nil, output_dir: nil, feed_output_basename: nil, feed_title: nil, existing_feed_path: nil, existing_schedule_path: nil, merge_policy: nil) ⇒ Config
Returns a new instance of Config.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/coach_zed.rb', line 25 def initialize( workout_catalog_dir: nil, model: nil, output_dir: nil, feed_output_basename: nil, feed_title: nil, existing_feed_path: nil, existing_schedule_path: nil, merge_policy: nil ) @workout_catalog_dir = workout_catalog_dir @model = model @output_dir = output_dir @feed_output_basename = feed_output_basename @feed_title = feed_title @existing_feed_path = existing_feed_path @existing_schedule_path = existing_schedule_path @merge_policy = merge_policy end |
Instance Attribute Details
#existing_feed_path ⇒ String?
Returns the value of attribute existing_feed_path.
23 24 25 |
# File 'lib/coach_zed.rb', line 23 def existing_feed_path @existing_feed_path end |
#existing_schedule_path ⇒ String?
Returns the value of attribute existing_schedule_path.
23 24 25 |
# File 'lib/coach_zed.rb', line 23 def existing_schedule_path @existing_schedule_path end |
#feed_output_basename ⇒ String?
Returns the value of attribute feed_output_basename.
23 24 25 |
# File 'lib/coach_zed.rb', line 23 def feed_output_basename @feed_output_basename end |
#feed_title ⇒ String?
Returns the value of attribute feed_title.
23 24 25 |
# File 'lib/coach_zed.rb', line 23 def feed_title @feed_title end |
#merge_policy ⇒ String?
Returns the value of attribute merge_policy.
23 24 25 |
# File 'lib/coach_zed.rb', line 23 def merge_policy @merge_policy end |
#model ⇒ String?
Returns the value of attribute model.
23 24 25 |
# File 'lib/coach_zed.rb', line 23 def model @model end |
#output_dir ⇒ String?
Returns the value of attribute output_dir.
23 24 25 |
# File 'lib/coach_zed.rb', line 23 def output_dir @output_dir end |
#workout_catalog_dir ⇒ String?
Returns the value of attribute workout_catalog_dir.
23 24 25 |
# File 'lib/coach_zed.rb', line 23 def workout_catalog_dir @workout_catalog_dir end |
Instance Method Details
#apply(hash) ⇒ void
This method returns an undefined value.
45 46 47 48 49 |
# File 'lib/coach_zed.rb', line 45 def apply(hash) hash.each do |key, value| public_send("#{key}=", value) if respond_to?("#{key}=") end end |