Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rgaidot/letsshop-mapper
Let's Shop Mapper is a Ruby library that allows to search and parse on Let's Shop Service
https://github.com/rgaidot/letsshop-mapper
Last synced: about 1 month ago
JSON representation
Let's Shop Mapper is a Ruby library that allows to search and parse on Let's Shop Service
- Host: GitHub
- URL: https://github.com/rgaidot/letsshop-mapper
- Owner: rgaidot
- License: apache-2.0
- Created: 2010-07-20T11:09:38.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-02-10T19:13:48.000Z (almost 14 years ago)
- Last Synced: 2024-03-14T23:48:10.035Z (11 months ago)
- Language: Ruby
- Homepage: http://letsshop.happun.com
- Size: 148 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE
Awesome Lists containing this project
README
= Let's Shop Mapper
== About
Let's Shop Mapper is a Ruby library that allows to search and parse on Let's Shop Service
== Install
gem install letsshop_mapper
== Examples
lshop = LetsShopMapper::Connection::Base::new("hostname", "key")
lshop.find({:q => "robe", :start => 10, :nhits => 5, :f => "refine:'universe:mode',refine:'gender:femme'"})
lshop.feed.entries.each { |e|
puts "Id: #{e.id}\n"
puts "Link: #{e.link}\n"
puts "Title: #{e.title}\n"
puts "Description: #{e.description}\n"
puts "Thumbnail: #{e.thumb}\n"
puts "Price: #{e.price}\n"
puts "Supplier: #{e.supplier}\n"
puts "------"
puts "facets"
puts "------"
e.facets.each { |f|
puts "Title: #{f.title}\n"
puts "Type: #{f.type}\n"
puts "Filter: #{f.filter.str_value}\n"
puts "Role: #{f.role}\n"
puts "Selected: #{f.selected}\n"
}
puts "-----------------------"
}See also the test code, especially letsshop_mapper_test.rb
== License
Copyright (C) 2010 Happun.
Licensed under the Apache License, Version 2.0 (the "LICENSE");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.