Method: EasyqaApi::User#initialize

Defined in:
lib/easyqa_api/items/user.rb

#initialize(attrs = {}) ⇒ User

Note:

If you give user email and password you will be already signed on EasyQA.

Returns a new instance of User.

Parameters:

  • attrs (Hash) (defaults to: {})

    param for action

Options Hash (attrs):

  • :email (String)

    user email

  • :password (String)

    user password

See Also:



16
17
18
19
20
21
# File 'lib/easyqa_api/items/user.rb', line 16

def initialize(attrs = {})
  super
  install_variables!(
    attrs[:email] && attrs[:password] ? (attrs[:email], attrs[:password]) : attrs
  )
end