Class: Uchi::Ui::Index::TurboFrame
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Uchi::Ui::Index::TurboFrame
- Defined in:
- app/components/uchi/ui/index/turbo_frame.rb
Instance Attribute Summary collapse
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#src ⇒ Object
readonly
Returns the value of attribute src.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(repository:, scope: nil, src: nil) ⇒ TurboFrame
constructor
A new instance of TurboFrame.
Constructor Details
#initialize(repository:, scope: nil, src: nil) ⇒ TurboFrame
Returns a new instance of TurboFrame.
16 17 18 19 20 21 |
# File 'app/components/uchi/ui/index/turbo_frame.rb', line 16 def initialize(repository:, scope: nil, src: nil) super() @repository = repository @scope = scope @src = src end |
Instance Attribute Details
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
7 8 9 |
# File 'app/components/uchi/ui/index/turbo_frame.rb', line 7 def repository @repository end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
7 8 9 |
# File 'app/components/uchi/ui/index/turbo_frame.rb', line 7 def scope @scope end |
#src ⇒ Object (readonly)
Returns the value of attribute src.
7 8 9 |
# File 'app/components/uchi/ui/index/turbo_frame.rb', line 7 def src @src end |
Instance Method Details
#call ⇒ Object
9 10 11 12 13 14 |
# File 'app/components/uchi/ui/index/turbo_frame.rb', line 9 def call helpers .turbo_frame_tag(turbo_frame_id, **) { content } end |