Class: Jpcalendar::Generator::CalenderDate

Inherits:
Object
  • Object
show all
Defined in:
lib/jpcalendar/generator.rb

Overview

}}}

Defined Under Namespace

Classes: AttributeTypeError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_date = "", _text = "", _event = nil, _jp_holiday = nil, _attributes = {}) ⇒ CalenderDate

Returns a new instance of CalenderDate.

Raises:



176
177
178
179
180
181
182
183
# File 'lib/jpcalendar/generator.rb', line 176

def initialize(_date = "", _text = "", _event = nil,  = nil, _attributes = {})
  raise AttributeTypeError if _attributes.present? && !_attributes.is_a?(Hash)
  self.date       = _date
  self.text       = _text
  self.event      = _event
  self.jp_holiday = 
  self.attributes = _attributes
end

Instance Attribute Details

#attributesObject

{{{



169
170
171
# File 'lib/jpcalendar/generator.rb', line 169

def attributes
  @attributes
end

#dateObject

{{{



169
170
171
# File 'lib/jpcalendar/generator.rb', line 169

def date
  @date
end

#eventObject

{{{



169
170
171
# File 'lib/jpcalendar/generator.rb', line 169

def event
  @event
end

#jp_holidayObject

{{{



169
170
171
# File 'lib/jpcalendar/generator.rb', line 169

def jp_holiday
  @jp_holiday
end

#textObject

{{{



169
170
171
# File 'lib/jpcalendar/generator.rb', line 169

def text
  @text
end