Class: Suzuri::Favorite

Inherits:
Object
  • Object
show all
Defined in:
lib/suzuri_client.rb

Overview

is users action of favoring Product (like facebook's like or twitter's favorite)”, “ja”=>“Favorite(ズッキュン)は、UserがProductを気に入った時にするアクションです(Facebookのいいね!やtwitterのお気に入りのようなものです)”

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Favorite

Returns a new instance of Favorite


235
236
237
# File 'lib/suzuri_client.rb', line 235

def initialize(client)
  @client = client
end

Instance Method Details

#product(product_id) ⇒ Object

product”, “ja”=>“ProductをFavoriteします。”

Parameters:

  • product_id: ("en"=>"unique identifier of product", "ja"=>"Productの一意なID")

242
243
244
# File 'lib/suzuri_client.rb', line 242

def product(product_id)
  @client.favorite.product(product_id)
end