Class: ZoomEye::Clients::User

Inherits:
Base
  • Object
show all
Defined in:
lib/zoomeye/clients/user.rb

Constant Summary

Constants inherited from Base

Base::BASE_URL, Base::HOST

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from ZoomEye::Clients::Base

Instance Method Details

#access_tokenObject



6
7
8
# File 'lib/zoomeye/clients/user.rb', line 6

def access_token
  _post("/user/login", username: @username, password: @password) { |json| json.dig("access_token") }
end