Class: Suzuri::User

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

Overview

is a Suzuri User.”, “ja”=>“User(ユーザ)とは、SUZURIのユーザです。”

Instance Method Summary collapse

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の情報を取得します”

Parameters:

  • user_id: ("en"=>"unique identifier of User", "ja"=>"Userの一意なID")


353
354
355
# File 'lib/suzuri_client.rb', line 353

def info(user_id)
  @client.user.info(user_id)
end

#selfObject

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の情報を更新します”

Parameters:

  • body:

    the object to pass as the request payload



365
366
367
# File 'lib/suzuri_client.rb', line 365

def update(body)
  @client.user.update(body)
end