Module: LetsShopMapper
- Defined in:
- lib/letsshop_mapper.rb,
lib/letsshop_mapper/version.rb,
lib/letsshop_mapper/connection.rb,
lib/letsshop_mapper/exceptions.rb,
lib/letsshop_mapper/model/tree/tree.rb,
lib/letsshop_mapper/model/base/facet.rb,
lib/letsshop_mapper/model/base/filter.rb,
lib/letsshop_mapper/model/suggest/item.rb,
lib/letsshop_mapper/model/base/category.rb,
lib/letsshop_mapper/model/opensearch/feed.rb,
lib/letsshop_mapper/model/suggest/suggest.rb,
lib/letsshop_mapper/model/opensearch/entry.rb
Defined Under Namespace
Modules: Connection, Model, Version Classes: Error, RequestBaseSearchException, UnknownFeedTypeException
Class Method Summary collapse
Class Method Details
.Boolean(string) ⇒ Object
27 28 29 30 31 |
# File 'lib/letsshop_mapper.rb', line 27 def self.Boolean(string) return true if string == true || string =~ /^true$/i return false if string == false || string.nil? || string =~ /^false$/i raise ArgumentError.new("invalid value for Boolean: \"#{string}\"") end |