Class: Uchi::Ui::Show::AttributeFields
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Uchi::Ui::Show::AttributeFields
- Defined in:
- app/components/uchi/ui/show/attribute_fields.rb
Instance Attribute Summary collapse
-
#attribute_fields ⇒ Object
readonly
Returns the value of attribute attribute_fields.
-
#record ⇒ Object
readonly
Returns the value of attribute record.
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
Instance Method Summary collapse
-
#initialize(attribute_fields:, record:, repository:) ⇒ AttributeFields
constructor
A new instance of AttributeFields.
Constructor Details
#initialize(attribute_fields:, record:, repository:) ⇒ AttributeFields
Returns a new instance of AttributeFields.
9 10 11 12 13 14 |
# File 'app/components/uchi/ui/show/attribute_fields.rb', line 9 def initialize(attribute_fields:, record:, repository:) super() @attribute_fields = attribute_fields @record = record @repository = repository end |
Instance Attribute Details
#attribute_fields ⇒ Object (readonly)
Returns the value of attribute attribute_fields.
7 8 9 |
# File 'app/components/uchi/ui/show/attribute_fields.rb', line 7 def attribute_fields @attribute_fields end |
#record ⇒ Object (readonly)
Returns the value of attribute record.
7 8 9 |
# File 'app/components/uchi/ui/show/attribute_fields.rb', line 7 def record @record end |
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
7 8 9 |
# File 'app/components/uchi/ui/show/attribute_fields.rb', line 7 def repository @repository end |