Module: DayOffs

Defined in:
lib/day_offs.rb,
lib/day_offs/version.rb

Defined Under Namespace

Modules: Core, Errors Classes: Configuration, DayOff

Constant Summary collapse

VERSION =
"0.1.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject (readonly)

Returns the value of attribute configuration.



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

def configuration
  @configuration
end

.registered_sourcesObject

Returns the value of attribute registered_sources.



24
25
26
# File 'lib/day_offs.rb', line 24

def registered_sources
  @registered_sources
end

.used_sourcesObject

Returns the value of attribute used_sources.



24
25
26
# File 'lib/day_offs.rb', line 24

def used_sources
  @used_sources
end

Class Method Details

.configureObject



26
27
28
29
# File 'lib/day_offs.rb', line 26

def configure
  @configuration = yield(Configuration.new)
  DayOffs::Core.objectize_sources
end