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