Class: ActiveStorage::Attached
- Inherits:
-
Object
- Object
- ActiveStorage::Attached
- Defined in:
- lib/active_storage/attached.rb
Defined Under Namespace
Modules: Macros Classes: Many, One
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(name, record) ⇒ Attached
constructor
A new instance of Attached.
Constructor Details
#initialize(name, record) ⇒ Attached
Returns a new instance of Attached.
10 11 12 |
# File 'lib/active_storage/attached.rb', line 10 def initialize(name, record) @name, @record = name, record end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/active_storage/attached.rb', line 8 def name @name end |
#record ⇒ Object (readonly)
Returns the value of attribute record.
8 9 10 |
# File 'lib/active_storage/attached.rb', line 8 def record @record end |