Class: ContentfulLite::AssetsArray
- Defined in:
- lib/contentful_lite/assets_array.rb
Instance Attribute Summary
Attributes inherited from BaseArray
Instance Method Summary collapse
-
#initialize(raw) ⇒ AssetsArray
constructor
private
A new instance of AssetsArray.
Methods inherited from BaseArray
Constructor Details
#initialize(raw) ⇒ AssetsArray
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of AssetsArray.
5 6 7 8 9 10 |
# File 'lib/contentful_lite/assets_array.rb', line 5 def initialize(raw) super(raw) # Create the array of asset objects @items.collect! { |item| ContentfulLite::Asset.new(item) } end |