Class: Dustbag::Variations

Inherits:
Object
  • Object
show all
Includes:
Parser::CollectionNode, Parser::Node
Defined in:
lib/dustbag/variations.rb

Instance Attribute Summary

Attributes included from Parser::Node

#node, #subnodes

Instance Method Summary collapse

Methods included from Parser::CollectionNode

#collection, included, #member_class, #member_name

Methods included from Parser::Node

included, #initialize, #repeated_subnodes, #repeated_subnodes_text, #subnode, #subnode_text

Instance Method Details

#dimensionsObject



11
12
13
14
15
16
# File 'lib/dustbag/variations.rb', line 11

def dimensions
  dimensions = subnode('VariationDimensions')
  dimensions && dimensions.locate('VariationDimension').map do |dimension|
    dimension.text
  end
end