Class: Bridgetown::Drops::UnifiedPayloadDrop
- Defined in:
- bridgetown-core/lib/bridgetown-core/drops/unified_payload_drop.rb
Constant Summary
Constants inherited from Drop
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#layout ⇒ Object
Returns the value of attribute layout.
-
#page ⇒ Object
(also: #resource)
Returns the value of attribute page.
-
#paginator ⇒ Object
Returns the value of attribute paginator.
Instance Method Summary collapse
Methods inherited from Drop
#[], #[]=, #content_methods, #each, #each_key, #fetch, #hash_for_json, #initialize, #inspect, #key?, #keys, #merge, #merge!, mutable, mutable?, #to_h, #to_json
Constructor Details
This class inherits a constructor from Bridgetown::Drops::Drop
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
8 9 10 |
# File 'bridgetown-core/lib/bridgetown-core/drops/unified_payload_drop.rb', line 8 def content @content end |
#layout ⇒ Object
Returns the value of attribute layout.
8 9 10 |
# File 'bridgetown-core/lib/bridgetown-core/drops/unified_payload_drop.rb', line 8 def layout @layout end |
#page ⇒ Object Also known as: resource
Returns the value of attribute page.
8 9 10 |
# File 'bridgetown-core/lib/bridgetown-core/drops/unified_payload_drop.rb', line 8 def page @page end |
#paginator ⇒ Object
Returns the value of attribute paginator.
8 9 10 |
# File 'bridgetown-core/lib/bridgetown-core/drops/unified_payload_drop.rb', line 8 def paginator @paginator end |
Instance Method Details
#bridgetown ⇒ Object
11 12 13 |
# File 'bridgetown-core/lib/bridgetown-core/drops/unified_payload_drop.rb', line 11 def bridgetown BridgetownDrop.global end |
#collections ⇒ Object
19 20 21 |
# File 'bridgetown-core/lib/bridgetown-core/drops/unified_payload_drop.rb', line 19 def collections @obj.collections end |