class Coinone::Account::AccountInfo::MobileInfo

Attributes

is_authenticated[R]
phone_corp[R]
phone_number[R]
user_name[R]

Public Class Methods

new(params={}) click to toggle source
# File lib/coinone/account/account_info/mobile_info.rb, line 8
def initialize(params={})
  @user_name = nil
  @phone_number = nil
  @phone_corp = nil
  @is_authenticated = nil
  update_info(params)
end

Public Instance Methods

update_info(params={}) click to toggle source
# File lib/coinone/account/account_info/mobile_info.rb, line 16
def update_info(params={})

  @user_name = params[:userName].strip if params.has_key? :userName
  @phone_number = params[:phoneNumber].strip if params.has_key? :phoneNumber
  @phone_corp = params[:phoneCorp].strip if params.has_key? :phoneCorp
  @is_authenticated = params[:isAuthenticated] == "true"

end