Class: Bridgetown::Drops::UnifiedPayloadDrop

Inherits:
Drop
  • Object
show all
Defined in:
lib/bridgetown-core/drops/unified_payload_drop.rb

Constant Summary

Constants inherited from Drop

Drop::NON_CONTENT_METHODS

Instance Attribute Summary collapse

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

#contentObject

Returns the value of attribute content.



8
9
10
# File 'lib/bridgetown-core/drops/unified_payload_drop.rb', line 8

def content
  @content
end

#layoutObject

Returns the value of attribute layout.



8
9
10
# File 'lib/bridgetown-core/drops/unified_payload_drop.rb', line 8

def layout
  @layout
end

#pageObject Also known as: resource

Returns the value of attribute page.



8
9
10
# File 'lib/bridgetown-core/drops/unified_payload_drop.rb', line 8

def page
  @page
end

#paginatorObject

Returns the value of attribute paginator.



8
9
10
# File 'lib/bridgetown-core/drops/unified_payload_drop.rb', line 8

def paginator
  @paginator
end

Instance Method Details

#bridgetownObject



11
12
13
# File 'lib/bridgetown-core/drops/unified_payload_drop.rb', line 11

def bridgetown
  BridgetownDrop.global
end

#collectionsObject



19
20
21
# File 'lib/bridgetown-core/drops/unified_payload_drop.rb', line 19

def collections
  @obj.collections
end

#siteObject



15
16
17
# File 'lib/bridgetown-core/drops/unified_payload_drop.rb', line 15

def site
  @site_drop ||= SiteDrop.new(@obj)
end