Class: Spear::Structure::User::CheckExisting
- Defined in:
- lib/spear/structure/user/check_existing.rb
Instance Attribute Summary collapse
-
#check_status ⇒ Object
readonly
Returns the value of attribute check_status.
-
#external_id ⇒ Object
readonly
Returns the value of attribute external_id.
-
#oauth_token ⇒ Object
readonly
Returns the value of attribute oauth_token.
Attributes inherited from Base
#error_message, #response, #root, #status
Instance Method Summary collapse
-
#initialize(response) ⇒ CheckExisting
constructor
A new instance of CheckExisting.
- #success? ⇒ Boolean
Constructor Details
#initialize(response) ⇒ CheckExisting
Returns a new instance of CheckExisting.
7 8 9 10 11 12 13 |
# File 'lib/spear/structure/user/check_existing.rb', line 7 def initialize(response) super(response) @external_id = @root["ResponseExternalID"] @oauth_token = @root["ResponseOAuthToken"] @check_status = @root['UserCheckStatus'] end |
Instance Attribute Details
#check_status ⇒ Object (readonly)
Returns the value of attribute check_status.
5 6 7 |
# File 'lib/spear/structure/user/check_existing.rb', line 5 def check_status @check_status end |
#external_id ⇒ Object (readonly)
Returns the value of attribute external_id.
5 6 7 |
# File 'lib/spear/structure/user/check_existing.rb', line 5 def external_id @external_id end |
#oauth_token ⇒ Object (readonly)
Returns the value of attribute oauth_token.
5 6 7 |
# File 'lib/spear/structure/user/check_existing.rb', line 5 def oauth_token @oauth_token end |
Instance Method Details
#success? ⇒ Boolean
15 16 17 |
# File 'lib/spear/structure/user/check_existing.rb', line 15 def success? super and @check_status.eql?('EmailExistsPasswordsMatch') end |