Class: Suzuri::User
- Inherits:
-
Object
- Object
- Suzuri::User
- Defined in:
- lib/suzuri_client.rb
Overview
is a Suzuri User.”, “ja”=>“User(ユーザ)とは、SUZURIのユーザです。”
Instance Method Summary collapse
-
#info(user_id) ⇒ Object
for existing User.”, “ja”=>“idで指定したUserの情報を取得します”.
-
#initialize(client) ⇒ User
constructor
A new instance of User.
-
#self ⇒ Object
for authorized User”, “ja”=>“認証されたUserの情報を取得します”.
-
#update(body) ⇒ Object
authorized User”, “ja”=>“認証されたUserの情報を更新します”.
Constructor Details
#initialize(client) ⇒ User
Returns a new instance of User.
346 347 348 |
# File 'lib/suzuri_client.rb', line 346 def initialize(client) @client = client end |
Instance Method Details
#info(user_id) ⇒ Object
for existing User.”, “ja”=>“idで指定したUserの情報を取得します”
353 354 355 |
# File 'lib/suzuri_client.rb', line 353 def info(user_id) @client.user.info(user_id) end |
#self ⇒ Object
for authorized User”, “ja”=>“認証されたUserの情報を取得します”
358 359 360 |
# File 'lib/suzuri_client.rb', line 358 def self() @client.user.self() end |
#update(body) ⇒ Object
authorized User”, “ja”=>“認証されたUserの情報を更新します”
365 366 367 |
# File 'lib/suzuri_client.rb', line 365 def update(body) @client.user.update(body) end |