Class: Dustbag::CustomerReviews

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

Instance Attribute Summary

Attributes included from Parser::Node

#node, #subnodes

Instance Method Summary collapse

Methods included from Parser::Node

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

Instance Method Details

#any?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/dustbag/customer_reviews.rb', line 7

def any?
  subnode_text('HasReviews') == 'true'
end