Class: SolidusSeo::Jsonld::List
- Defined in:
- lib/solidus_seo/jsonld/list.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#list_items ⇒ Object
Returns the value of attribute list_items.
Instance Method Summary collapse
-
#initialize(data) ⇒ List
constructor
A new instance of List.
Methods inherited from Base
Constructor Details
#initialize(data) ⇒ List
Returns a new instance of List.
8 9 10 11 12 13 |
# File 'lib/solidus_seo/jsonld/list.rb', line 8 def initialize(data) @list_items = [] @data = data.to_a parse end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
6 7 8 |
# File 'lib/solidus_seo/jsonld/list.rb', line 6 def data @data end |
#list_items ⇒ Object
Returns the value of attribute list_items.
6 7 8 |
# File 'lib/solidus_seo/jsonld/list.rb', line 6 def list_items @list_items end |