Class: Rtasklib::Models::TaskrcModel

Inherits:
Object
  • Object
show all
Includes:
Virtus.model do |mod| mod.coerce = true mod.coercer.config.string.boolean_map = { 'yes' => true, 'on' => true, 'no' => false, 'off' => false } end
Defined in:
lib/rtasklib/models.rb

Overview

A base Virtus model whose attributes are created dynamically based on the given attributes are read from a .taskrc or Hash

attr_accessors are available for all attributes, and more can be added See Rtasklib::Controller for methods to do this