class TorgApi::Api::User

Пользователи системы ТОРГ

Attributes

department_id[RW]

@return [Integer] ID подразделения

email[RW]

@return [Integer] Электронная почта

fax[RW]

@return [Integer] Факс

id[RW]

@return [Integer] id

name[RW]

@return [Integer] Имя

patronymic[RW]

@return [Integer] Отчество

phone_cell[RW]

@return [Integer] Телефон сотовый

phone_public[RW]

@return [Integer] Телефон рабочий

surname[RW]

@return [Integer] Фамилия

user_job[RW]

@return [Integer] Должность

Public Class Methods

find(id) click to toggle source
# File lib/torg_api/api/user.rb, line 29
def find(id)
  responce = JSON.parse(
    torg_resource["user/#{id}"].get(
      accept: :json,
      content_type: :json,
      format: :json
    ),
    symbolize_names: true
  )
  new(responce)
end