Class: Authful::Response
- Inherits:
-
Object
- Object
- Authful::Response
- Defined in:
- lib/authful/response.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#qr_code ⇒ Object
Returns the value of attribute qr_code.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(args) ⇒ Response
constructor
A new instance of Response.
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
#error ⇒ Object
Returns the value of attribute error.
3 4 5 |
# File 'lib/authful/response.rb', line 3 def error @error end |
#phone ⇒ Object
Returns the value of attribute phone.
3 4 5 |
# File 'lib/authful/response.rb', line 3 def phone @phone end |
#qr_code ⇒ Object
Returns the value of attribute qr_code.
3 4 5 |
# File 'lib/authful/response.rb', line 3 def qr_code @qr_code end |
#secret ⇒ Object
Returns the value of attribute secret.
3 4 5 |
# File 'lib/authful/response.rb', line 3 def secret @secret end |
#token ⇒ Object
Returns the value of attribute token.
3 4 5 |
# File 'lib/authful/response.rb', line 3 def token @token end |