Class: Uchi::Field::Base::Show
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Uchi::Field::Base::Show
- Defined in:
- app/components/uchi/field/base.rb
Overview
Uchi::Field::Base::Show components render fields in the show view.
Direct Known Subclasses
Uchi::Field::BelongsTo::Show, Uchi::Field::Blank::Show, Uchi::Field::Boolean::Show, Date::Show, DateTime::Show, File::Show, HasAndBelongsToMany::Show, HasMany::Show, Id::Show, Image::Show, Number::Show, String::Show, Text::Show
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#record ⇒ Object
readonly
Returns the value of attribute record.
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
Instance Method Summary collapse
-
#initialize(field:, record:, repository:) ⇒ Show
constructor
A new instance of Show.
Constructor Details
#initialize(field:, record:, repository:) ⇒ Show
Returns a new instance of Show.
26 27 28 29 30 31 32 |
# File 'app/components/uchi/field/base.rb', line 26 def initialize(field:, record:, repository:) super() @field = field @record = record @repository = repository end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
24 25 26 |
# File 'app/components/uchi/field/base.rb', line 24 def field @field end |
#record ⇒ Object (readonly)
Returns the value of attribute record.
24 25 26 |
# File 'app/components/uchi/field/base.rb', line 24 def record @record end |
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
24 25 26 |
# File 'app/components/uchi/field/base.rb', line 24 def repository @repository end |