Class: Uchi::Ui::Show::AttributeFields

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/uchi/ui/show/attribute_fields.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_fieldsObject (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

#recordObject (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

#repositoryObject (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