class Authenticator::Client::Account
Public Class Methods
from_json(json)
click to toggle source
# File lib/authenticator/client/account.rb, line 7 def self.from_json(json) params = json.each_with_object({}) do |(key, value), hash| hash[key.to_sym] = value end new(params) end
Public Instance Methods
to_params()
click to toggle source
# File lib/authenticator/client/account.rb, line 14 def to_params { account: { id: id, password: password } } end
Also aliased as: to_h