Class: BahaiDate::Occasion

Inherits:
Object
  • Object
show all
Defined in:
lib/bahai_date/occasion.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_titleObject (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_htmlObject (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

#titleObject (readonly)

Returns the value of attribute title.



3
4
5
# File 'lib/bahai_date/occasion.rb', line 3

def title
  @title
end

#title_htmlObject (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

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/bahai_date/occasion.rb', line 3

def type
  @type
end

#work_suspendedObject (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