Class: Bs5::TooltipService
- Inherits:
-
Object
- Object
- Bs5::TooltipService
- Defined in:
- app/service/bs5/tooltip_service.rb
Instance Attribute Summary collapse
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, options = {}) ⇒ TooltipService
constructor
A new instance of TooltipService.
- #to_hash ⇒ Object
Constructor Details
#initialize(title, options = {}) ⇒ TooltipService
Returns a new instance of TooltipService.
9 10 11 12 |
# File 'app/service/bs5/tooltip_service.rb', line 9 def initialize(title, = {}) @title = title @options = end |
Instance Attribute Details
#title ⇒ Object (readonly)
Returns the value of attribute title.
7 8 9 |
# File 'app/service/bs5/tooltip_service.rb', line 7 def title @title end |
Instance Method Details
#to_hash ⇒ Object
14 15 16 17 18 19 |
# File 'app/service/bs5/tooltip_service.rb', line 14 def to_hash { title: title, data: } end |