Class: ActiveAdminAssociable::Associable
- Inherits:
-
Object
- Object
- ActiveAdminAssociable::Associable
- Defined in:
- lib/activeadmin_associable/associable.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Associable
constructor
A new instance of Associable.
- #label ⇒ Object
Constructor Details
#initialize(name, options = {}) ⇒ Associable
Returns a new instance of Associable.
5 6 7 8 9 |
# File 'lib/activeadmin_associable/associable.rb', line 5 def initialize(name, = {}) @name = name = .symbolize_keys end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/activeadmin_associable/associable.rb', line 4 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/activeadmin_associable/associable.rb', line 4 def end |
Instance Method Details
#label ⇒ Object
11 12 13 |
# File 'lib/activeadmin_associable/associable.rb', line 11 def label [:as] end |