Exception: Instagram::RegisterException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/instagram/register_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(login, password, email, proxy) ⇒ RegisterException

Returns a new instance of RegisterException.



5
6
7
8
9
10
# File 'lib/instagram/register_exception.rb', line 5

def initialize(, password, email, proxy)
  @login = 
  @password = password
  @email = email
  @proxy = proxy
end

Instance Attribute Details

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/instagram/register_exception.rb', line 3

def email
  @email
end

#loginObject

Returns the value of attribute login.



3
4
5
# File 'lib/instagram/register_exception.rb', line 3

def 
  @login
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/instagram/register_exception.rb', line 3

def password
  @password
end

#proxyObject

Returns the value of attribute proxy.



3
4
5
# File 'lib/instagram/register_exception.rb', line 3

def proxy
  @proxy
end

Instance Method Details

#messageObject



12
13
14
# File 'lib/instagram/register_exception.rb', line 12

def message
  "Error registering Instagram account: #{@login}:#{@password}, proxy: #{@proxy}"
end