Class: Zazzle
- Inherits:
-
Object
- Object
- Zazzle
- Defined in:
- lib/zazzle.rb,
lib/zazzle/version.rb
Constant Summary collapse
- VERSION =
"0.0.1"
Class Attribute Summary collapse
-
.associate_id ⇒ Object
Returns the value of attribute associate_id.
Class Method Summary collapse
- .buffet_link(category_id, options = {}) ⇒ Object
- .product_link(product_id, page = 'productpage', options = {}) ⇒ Object
Class Attribute Details
.associate_id ⇒ Object
Returns the value of attribute associate_id.
7 8 9 |
# File 'lib/zazzle.rb', line 7 def associate_id @associate_id end |
Class Method Details
.buffet_link(category_id, options = {}) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/zazzle.rb', line 18 def buffet_link(category_id, = {}) params = {:rf => associate_id , :ax => 'designblast' , :cg => category_id , :fwd => page, :ed => true}.merge() build_request(params) end |
.product_link(product_id, page = 'productpage', options = {}) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/zazzle.rb', line 9 def product_link(product_id, page = 'productpage', = {}) params = {:rf => associate_id , :ax => 'linkover' , :pd => product_id , :fwd => page, :ed => true}.merge() build_request(params) end |