Class: Round::User

Inherits:
Base
  • Object
show all
Defined in:
lib/round/user.rb

Instance Attribute Summary

Attributes inherited from Base

#resource

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

association, #hash_identifier, #initialize, #method_missing, #refresh

Constructor Details

This class inherits a constructor from Round::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Round::Base

Class Method Details

.hash_identifierObject



5
6
7
# File 'lib/round/user.rb', line 5

def self.hash_identifier
  'email'
end

Instance Method Details

#devicesObject



9
10
11
12
13
14
15
16
17
# File 'lib/round/user.rb', line 9

def devices
  resource = @client.resources.devices_query(
    email: self.refresh.email
  )
  Round::DeviceCollection.new(
    resource: resource,
    client: @client
  )
end

#walletObject



19
20
21
# File 'lib/round/user.rb', line 19

def wallet
  default_wallet
end