Class: Authful::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Response

Returns a new instance of Response.


5
6
7
8
9
# File 'lib/authful/response.rb', line 5

def initialize(args)
  args.each do |k,v|
    instance_variable_set("@#{k}", v) unless v.nil?
  end
end

Instance Attribute Details

#errorObject

Returns the value of attribute error


3
4
5
# File 'lib/authful/response.rb', line 3

def error
  @error
end

#phoneObject

Returns the value of attribute phone


3
4
5
# File 'lib/authful/response.rb', line 3

def phone
  @phone
end

#qr_codeObject

Returns the value of attribute qr_code


3
4
5
# File 'lib/authful/response.rb', line 3

def qr_code
  @qr_code
end

#secretObject

Returns the value of attribute secret


3
4
5
# File 'lib/authful/response.rb', line 3

def secret
  @secret
end

#tokenObject

Returns the value of attribute token


3
4
5
# File 'lib/authful/response.rb', line 3

def token
  @token
end