Class: Coinone::Account::EmailInfo
- Inherits:
-
Object
- Object
- Coinone::Account::EmailInfo
- Defined in:
- lib/coinone/account/email_info.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#is_authenticated ⇒ Object
readonly
Returns the value of attribute is_authenticated.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ EmailInfo
constructor
A new instance of EmailInfo.
- #update_info(params = {}) ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ EmailInfo
Returns a new instance of EmailInfo.
7 8 9 10 11 12 |
# File 'lib/coinone/account/email_info.rb', line 7 def initialize(params={}) @email = nil @is_authenticated = nil update_info(params) end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
5 6 7 |
# File 'lib/coinone/account/email_info.rb', line 5 def email @email end |
#is_authenticated ⇒ Object (readonly)
Returns the value of attribute is_authenticated.
5 6 7 |
# File 'lib/coinone/account/email_info.rb', line 5 def is_authenticated @is_authenticated end |
Instance Method Details
#update_info(params = {}) ⇒ Object
14 15 16 17 |
# File 'lib/coinone/account/email_info.rb', line 14 def update_info(params={}) @email = params[:email].strip if params.has_key? :email @is_authenticated = params[:isAuthenticated] == "true" end |