Class: Muck::ConfigDSL::RetentionDSL
- Inherits:
-
Object
- Object
- Muck::ConfigDSL::RetentionDSL
- Defined in:
- lib/muck/config_dsl/retention_dsl.rb
Instance Method Summary collapse
- #daily(daily) ⇒ Object
- #hourly(hourly) ⇒ Object
-
#initialize(hash) ⇒ RetentionDSL
constructor
A new instance of RetentionDSL.
- #monthly(monthly) ⇒ Object
- #yearly(yearly) ⇒ Object
Constructor Details
#initialize(hash) ⇒ RetentionDSL
Returns a new instance of RetentionDSL.
5 6 7 |
# File 'lib/muck/config_dsl/retention_dsl.rb', line 5 def initialize(hash) @hash = hash end |
Instance Method Details
#daily(daily) ⇒ Object
13 14 15 |
# File 'lib/muck/config_dsl/retention_dsl.rb', line 13 def daily(daily) @hash[:daily] = daily end |
#hourly(hourly) ⇒ Object
9 10 11 |
# File 'lib/muck/config_dsl/retention_dsl.rb', line 9 def hourly(hourly) @hash[:hourly] = hourly end |
#monthly(monthly) ⇒ Object
17 18 19 |
# File 'lib/muck/config_dsl/retention_dsl.rb', line 17 def monthly(monthly) @hash[:monthly] = monthly end |
#yearly(yearly) ⇒ Object
21 22 23 |
# File 'lib/muck/config_dsl/retention_dsl.rb', line 21 def yearly(yearly) @hash[:yearly] = yearly end |