Class: Atrium::AtriumClient

Inherits:
Object
  • Object
show all
Defined in:
lib/atrium-ruby/api/atrium_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key, client_id) ⇒ AtriumClient

Returns a new instance of AtriumClient.



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/atrium-ruby/api/atrium_client.rb', line 15

def initialize(api_key, client_id)
  Atrium.configure do |config|
    config.api_key['MX-API-Key'] = api_key
    config.api_key['MX-Client-ID'] = client_id
  end
  
  @accounts = Atrium::AccountsApi.new()
  @connectWidget = Atrium::ConnectWidgetApi.new()
  @holdings = Atrium::HoldingsApi.new()
  @identity = Atrium::IdentityApi.new()
  @institutions = Atrium::InstitutionsApi.new()
  @members = Atrium::MembersApi.new()
  @merchants = Atrium::MerchantsApi.new()
  @statements = Atrium::StatementsApi.new()
  @transactions = Atrium::TransactionsApi.new()
  @users = Atrium::UsersApi.new()
  @verification = Atrium::VerificationApi.new()
end

Instance Attribute Details

#accountsObject

Returns the value of attribute accounts.



3
4
5
# File 'lib/atrium-ruby/api/atrium_client.rb', line 3

def accounts
  @accounts
end

#connectWidgetObject

Returns the value of attribute connectWidget.



4
5
6
# File 'lib/atrium-ruby/api/atrium_client.rb', line 4

def connectWidget
  @connectWidget
end

#holdingsObject

Returns the value of attribute holdings.



5
6
7
# File 'lib/atrium-ruby/api/atrium_client.rb', line 5

def holdings
  @holdings
end

#identityObject

Returns the value of attribute identity.



6
7
8
# File 'lib/atrium-ruby/api/atrium_client.rb', line 6

def identity
  @identity
end

#institutionsObject

Returns the value of attribute institutions.



7
8
9
# File 'lib/atrium-ruby/api/atrium_client.rb', line 7

def institutions
  @institutions
end

#membersObject

Returns the value of attribute members.



8
9
10
# File 'lib/atrium-ruby/api/atrium_client.rb', line 8

def members
  @members
end

#merchantsObject

Returns the value of attribute merchants.



9
10
11
# File 'lib/atrium-ruby/api/atrium_client.rb', line 9

def merchants
  @merchants
end

#statementsObject

Returns the value of attribute statements.



10
11
12
# File 'lib/atrium-ruby/api/atrium_client.rb', line 10

def statements
  @statements
end

#transactionsObject

Returns the value of attribute transactions.



11
12
13
# File 'lib/atrium-ruby/api/atrium_client.rb', line 11

def transactions
  @transactions
end

#usersObject

Returns the value of attribute users.



12
13
14
# File 'lib/atrium-ruby/api/atrium_client.rb', line 12

def users
  @users
end

#verificationObject

Returns the value of attribute verification.



13
14
15
# File 'lib/atrium-ruby/api/atrium_client.rb', line 13

def verification
  @verification
end