Class: Suzuri::Client
- Inherits:
-
Object
- Object
- Suzuri::Client
- Defined in:
- lib/suzuri_client.rb
Overview
Suzuri API
Instance Method Summary collapse
-
#choice ⇒ Choice
“ja”=>“Choiceは、UserがProductを集めて作れるリストです。サイト内ではChoiceのことはオモイデと呼ばれています。”.
-
#favorite ⇒ Favorite
is users action of favoring Product (like facebook’s like or twitter’s favorite)”, “ja”=>“Favorite(ズッキュン)は、UserがProductを気に入った時にするアクションです(Facebookのいいね!やtwitterのお気に入りのようなものです)”.
-
#identity ⇒ Identity
identity of other web sites”, “ja”=>“他サイトでのユーザーのアイデンティティ”.
-
#initialize(client) ⇒ Client
constructor
A new instance of Client.
-
#item ⇒ Item
is a product type we can create in SUZURI. For example, there is the item of ‘T-Shirt’ or ‘Mug’.”, “ja”=>“Item(アイテム)は、SUZURIで作ることができる商品の種類です。TシャツやマグカップなどのItem(アイテム)があります。”.
-
#item_color ⇒ ItemColor
color”, “ja”=>“アイテムカラー”.
-
#item_size ⇒ ItemSize
size”, “ja”=>“アイテムのサイズ”.
-
#item_variant ⇒ ItemVariant
of Item Color & Item Size.”, “ja”=>“アイテムカラーとアイテムサイズの組み合わせ”.
-
#material ⇒ Material
is a material for create Product. Material is generated from image file uploaded by User”, “ja”=>“Material(素材)は、Userがアップロードした画像によって生成される、Product(商品)を作るための素材です。ひとつのMaterialからは、Item一種類につき一つずつのProductを作ることができます。Materialから作ることのできる商品の種類は、**Item List API** を使って取得することができます。”.
-
#product ⇒ Product
created from Material”, “ja”=>“Productは、Materialから生まれた各商品のことです。商品の値段は material:price と itemVariant:price によって決定されます。”.
-
#profile ⇒ Profile
profile”, “ja”=>“ユーザのプロフィール”.
-
#user ⇒ User
is a Suzuri User.”, “ja”=>“User(ユーザ)とは、SUZURIのユーザです。”.
Constructor Details
#initialize(client) ⇒ Client
Returns a new instance of Client.
90 91 92 |
# File 'lib/suzuri_client.rb', line 90 def initialize(client) @client = client end |
Instance Method Details
#choice ⇒ Choice
“ja”=>“Choiceは、UserがProductを集めて作れるリストです。サイト内ではChoiceのことはオモイデと呼ばれています。”
97 98 99 |
# File 'lib/suzuri_client.rb', line 97 def choice @choice_resource ||= Choice.new(@client) end |
#favorite ⇒ Favorite
is users action of favoring Product (like facebook’s like or twitter’s favorite)”, “ja”=>“Favorite(ズッキュン)は、UserがProductを気に入った時にするアクションです(Facebookのいいね!やtwitterのお気に入りのようなものです)”
104 105 106 |
# File 'lib/suzuri_client.rb', line 104 def favorite @favorite_resource ||= Favorite.new(@client) end |
#identity ⇒ Identity
identity of other web sites”, “ja”=>“他サイトでのユーザーのアイデンティティ”
111 112 113 |
# File 'lib/suzuri_client.rb', line 111 def identity @identity_resource ||= Identity.new(@client) end |
#item ⇒ Item
is a product type we can create in SUZURI. For example, there is the item of ‘T-Shirt’ or ‘Mug’.”, “ja”=>“Item(アイテム)は、SUZURIで作ることができる商品の種類です。TシャツやマグカップなどのItem(アイテム)があります。”
118 119 120 |
# File 'lib/suzuri_client.rb', line 118 def item @item_resource ||= Item.new(@client) end |
#item_color ⇒ ItemColor
color”, “ja”=>“アイテムカラー”
125 126 127 |
# File 'lib/suzuri_client.rb', line 125 def item_color @item_color_resource ||= ItemColor.new(@client) end |
#item_size ⇒ ItemSize
size”, “ja”=>“アイテムのサイズ”
132 133 134 |
# File 'lib/suzuri_client.rb', line 132 def item_size @item_size_resource ||= ItemSize.new(@client) end |
#item_variant ⇒ ItemVariant
of Item Color & Item Size.”, “ja”=>“アイテムカラーとアイテムサイズの組み合わせ”
139 140 141 |
# File 'lib/suzuri_client.rb', line 139 def item_variant @item_variant_resource ||= ItemVariant.new(@client) end |
#material ⇒ Material
is a material for create Product. Material is generated from image file uploaded by User”, “ja”=>“Material(素材)は、Userがアップロードした画像によって生成される、Product(商品)を作るための素材です。ひとつのMaterialからは、Item一種類につき一つずつのProductを作ることができます。Materialから作ることのできる商品の種類は、**Item List API** を使って取得することができます。”
146 147 148 |
# File 'lib/suzuri_client.rb', line 146 def material @material_resource ||= Material.new(@client) end |
#product ⇒ Product
created from Material”, “ja”=>“Productは、Materialから生まれた各商品のことです。商品の値段は material:price と itemVariant:price によって決定されます。”
153 154 155 |
# File 'lib/suzuri_client.rb', line 153 def product @product_resource ||= Product.new(@client) end |