Class: Muck::ConfigDSL::RetentionDSL

Inherits:
Object
  • Object
show all
Defined in:
lib/muck/config_dsl/retention_dsl.rb

Instance Method Summary collapse

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