Class: Jpcalendar::Generator::CalenderDate
- Inherits:
-
Object
- Object
- Jpcalendar::Generator::CalenderDate
- Defined in:
- lib/jpcalendar/generator.rb
Overview
}}}
Defined Under Namespace
Classes: AttributeTypeError
Instance Attribute Summary collapse
-
#attributes ⇒ Object
{{{.
-
#date ⇒ Object
{{{.
-
#event ⇒ Object
{{{.
-
#jp_holiday ⇒ Object
{{{.
-
#text ⇒ Object
{{{.
Instance Method Summary collapse
-
#initialize(_date = "", _text = "", _event = nil, _jp_holiday = nil, _attributes = {}) ⇒ CalenderDate
constructor
A new instance of CalenderDate.
Constructor Details
#initialize(_date = "", _text = "", _event = nil, _jp_holiday = nil, _attributes = {}) ⇒ CalenderDate
Returns a new instance of CalenderDate.
176 177 178 179 180 181 182 183 |
# File 'lib/jpcalendar/generator.rb', line 176 def initialize(_date = "", _text = "", _event = nil, _jp_holiday = nil, _attributes = {}) raise AttributeTypeError if _attributes.present? && !_attributes.is_a?(Hash) self.date = _date self.text = _text self.event = _event self.jp_holiday = _jp_holiday self.attributes = _attributes end |
Instance Attribute Details
#attributes ⇒ Object
{{{
169 170 171 |
# File 'lib/jpcalendar/generator.rb', line 169 def attributes @attributes end |
#date ⇒ Object
{{{
169 170 171 |
# File 'lib/jpcalendar/generator.rb', line 169 def date @date end |
#event ⇒ Object
{{{
169 170 171 |
# File 'lib/jpcalendar/generator.rb', line 169 def event @event end |
#jp_holiday ⇒ Object
{{{
169 170 171 |
# File 'lib/jpcalendar/generator.rb', line 169 def jp_holiday @jp_holiday end |
#text ⇒ Object
{{{
169 170 171 |
# File 'lib/jpcalendar/generator.rb', line 169 def text @text end |