module HearthstoneApi
  class Cards < BaseModel
    def self.all(options = {})
      get "/cards", options
    end

    def self.single(name_or_id, options = {})
      get "/cards/#{name_or_id}", options
    end

    def self.classes(klass, options = {})
      get "/cards/classes/#{klass.capitalize_all}", options
    end

    def self.type(type, options = {})
      get "/cards/types/#{type.capitalize_all}", options
    end

    def self.sets(set, options = {})
      get "/cards/sets/#{set.capitalize_all}", options
    end

    def self.races(race, options = {})
      get "/cards/races/#{race.capitalize_all}", options
    end

    def self.qualities(quality, options = {})
      get "/cards/qualities/#{quality.capitalize_all}", options
    end

    def self.factions(faction, options = {})
      get "/cards/factions/#{faction.capitalize_all}", options
    end

    def self.search(search_term)
      get "/cards/search/#{search_term}"
    end
  end
end

module HearthstoneApi
  class Cards < BaseModel
    def self.all(options = {})
      get "/cards", options
    end

    def self.single(name_or_id, options = {})
      get "/cards/#{name_or_id}", options
    end

    def self.classes(klass, options = {})
      get "/cards/classes/#{klass.capitalize_all}", options
    end

    def self.type(type, options = {})
      get "/cards/types/#{type.capitalize_all}", options
    end

    def self.sets(set, options = {})
      get "/cards/sets/#{set.capitalize_all}", options
    end

    def self.races(race, options = {})
      get "/cards/races/#{race.capitalize_all}", options
    end

    def self.qualities(quality, options = {})
      get "/cards/qualities/#{quality.capitalize_all}", options
    end

    def self.factions(faction, options = {})
      get "/cards/factions/#{faction.capitalize_all}", options
    end

    def self.search(search_term, options = {})
      get "/cards/search/#{search_term}", options
    end
  end
end

Add options parameter to Card.search
Add options parameter to Card.search
