Module: SolidusMe::AccountSyncable
- Included in:
- MeClientProduction, MeClientSandbox
- Defined in:
- app/models/solidus_me/me_client.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
Instance Method Summary collapse
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
10 11 12 |
# File 'app/models/solidus_me/me_client.rb', line 10 def account @account end |
Instance Method Details
#initialize(account) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/models/solidus_me/me_client.rb', line 12 def initialize(account) @account = account super( access_token: account.access_token, refresh: account.refresh_token, client_id: account.client_id, client_secret: account.client_secret, token_expires_at: account.token_expires_at, test_mode: account.test_mode ) end |
#refresh_token ⇒ Object
24 25 26 27 |
# File 'app/models/solidus_me/me_client.rb', line 24 def refresh_token super sync_account_tokens end |