lib/sorenson/services/account.rb in 360_services-0.0.1 vs lib/sorenson/services/account.rb in 360_services-0.0.2
- old
+ new
@@ -1,9 +1,10 @@
module Sorenson
module Services
class Account < Base
attr_accessor :rate_plan, :username, :status, :customer_id, :id, :rate_plan_expiration_date, :date_last_modified,
:last_login_time, :date_retrieved, :total_asset_count, :token
+ cattr_accessor :account_token, :account_id
def self.login(username, password)
account = Account.new(JSON.parse(login_no_resource(username, password)))
self.account_token = account.token
self.account_id = account.id
\ No newline at end of file