Class: Pageflow::Admin::MembershipsHelper::CollectionForParent
- Inherits:
-
Object
- Object
- Pageflow::Admin::MembershipsHelper::CollectionForParent
- Defined in:
- app/helpers/pageflow/admin/memberships_helper.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(parent, options) ⇒ CollectionForParent
constructor
A new instance of CollectionForParent.
- #pairs ⇒ Object
Constructor Details
#initialize(parent, options) ⇒ CollectionForParent
Returns a new instance of CollectionForParent.
21 22 23 24 |
# File 'app/helpers/pageflow/admin/memberships_helper.rb', line 21 def initialize(parent, ) @parent = parent @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
19 20 21 |
# File 'app/helpers/pageflow/admin/memberships_helper.rb', line 19 def @options end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
19 20 21 |
# File 'app/helpers/pageflow/admin/memberships_helper.rb', line 19 def parent @parent end |
Instance Method Details
#pairs ⇒ Object
26 27 28 29 30 |
# File 'app/helpers/pageflow/admin/memberships_helper.rb', line 26 def pairs items.each_with_object([]) do |item, result| result << [display(item), item.id] end end |