Class: BahaiDate::Occasion
- Inherits:
-
Object
- Object
- BahaiDate::Occasion
- Defined in:
- lib/bahai_date/occasion.rb
Instance Attribute Summary collapse
-
#short_title ⇒ Object
readonly
Returns the value of attribute short_title.
-
#short_title_html ⇒ Object
readonly
Returns the value of attribute short_title_html.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#title_html ⇒ Object
readonly
Returns the value of attribute title_html.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#work_suspended ⇒ Object
(also: #work_suspended?)
readonly
Returns the value of attribute work_suspended.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Occasion
constructor
A new instance of Occasion.
Constructor Details
#initialize(opts = {}) ⇒ Occasion
Returns a new instance of Occasion.
11 12 13 14 15 16 17 18 |
# File 'lib/bahai_date/occasion.rb', line 11 def initialize(opts = {}) @type = opts[:type] @work_suspended = opts[:work_suspended] @title = opts[:title] @short_title = opts[:short_title] @title_html = opts[:title_html] @short_title_html = opts[:short_title_html] end |
Instance Attribute Details
#short_title ⇒ Object (readonly)
Returns the value of attribute short_title.
3 4 5 |
# File 'lib/bahai_date/occasion.rb', line 3 def short_title @short_title end |
#short_title_html ⇒ Object (readonly)
Returns the value of attribute short_title_html.
3 4 5 |
# File 'lib/bahai_date/occasion.rb', line 3 def short_title_html @short_title_html end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/bahai_date/occasion.rb', line 3 def title @title end |
#title_html ⇒ Object (readonly)
Returns the value of attribute title_html.
3 4 5 |
# File 'lib/bahai_date/occasion.rb', line 3 def title_html @title_html end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/bahai_date/occasion.rb', line 3 def type @type end |
#work_suspended ⇒ Object (readonly) Also known as: work_suspended?
Returns the value of attribute work_suspended.
3 4 5 |
# File 'lib/bahai_date/occasion.rb', line 3 def work_suspended @work_suspended end |