class BestBuy::Conditions::CategoryCondition

Public Class Methods

new(condition_hash) click to toggle source
# File lib/best_buy/helpers/conditions/category_condition.rb, line 6
def initialize(condition_hash)
  @category_id = condition_hash[:category_id]
end

Public Instance Methods

search_query() click to toggle source
# File lib/best_buy/helpers/conditions/category_condition.rb, line 14
def search_query
  "categoryPath.id=#{@category_id}"
end
valid?() click to toggle source
# File lib/best_buy/helpers/conditions/category_condition.rb, line 10
def valid?
  @category_id.present?
end