plaid 0.1.1 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e4372af14800f04a94b58aeea21befb1802b361
4
- data.tar.gz: 029382c6b488f86d51946c84d4ac845aa4f6019e
3
+ metadata.gz: 14a32a8d16bcdbeee7125f3dc2c0026c40570ae2
4
+ data.tar.gz: c0adfe0c406e9c2c3f1a6148add5e87d72c0bdc6
5
5
  SHA512:
6
- metadata.gz: 5c3f2b55fa8fe633347d41897cef634e8b611214cd98b326df6b4c27d64b7ec75a89c64f4a711fdbceebf1f392eabf8ca4a02fabdc6e4d92f3023eb0e0763c50
7
- data.tar.gz: 6bbdfa7719b2e90a891782c52d1ab72bb37228a825983343b7eda04a52e973e365ab22eff37b1c180473d1b607ddc99e78d58b1ae2fec3d64e999c6f676c649c
6
+ metadata.gz: c94ab43042bf39ceb5b88dccaf8188ad3281dd2549e44ccb2071e9af8007f0ea128a60c8602e6551bfe5ef5d72790729cfc2360ba1a9d6e5eb1e09efe5edff16
7
+ data.tar.gz: d3dab156da6a6fc84c992ae4b1dbb7844b8b24e9f5743a04ce6a374298e50bea6b83422f3d18790850d7360eec0ebf66bbb87a83effa069b4914e92d225cd1a8
@@ -0,0 +1,20 @@
1
+ require 'plaid/config'
2
+ require 'plaid/call'
3
+ require 'plaid/customer'
4
+ require 'rest_client'
5
+ module Plaid
6
+ class << self
7
+ include Plaid::Configure
8
+
9
+ # Defined when a user exists with a unique access_token. Ex: Plaid.customer.get_transactions
10
+ def customer
11
+ @customer = Plaid::Customer.new
12
+ end
13
+
14
+ # Defined for generic calls without access_tokens required. Ex: Plaid.call.add_accounts(username,password,type)
15
+ def call
16
+ @call = Plaid::Call.new
17
+ end
18
+
19
+ end
20
+ end
@@ -1,12 +1,12 @@
1
- module Plaidio
1
+ module Plaid
2
2
  class Call
3
3
 
4
4
  BASE_URL = 'https://tartan.plaid.com/'
5
5
 
6
6
  # This initializes our instance variables, and sets up a new Customer class.
7
7
  def initialize
8
- Plaidio::Configure::KEYS.each do |key|
9
- instance_variable_set(:"@#{key}", Plaidio.instance_variable_get(:"@#{key}"))
8
+ Plaid::Configure::KEYS.each do |key|
9
+ instance_variable_set(:"@#{key}", Plaid.instance_variable_get(:"@#{key}"))
10
10
  end
11
11
  end
12
12
 
@@ -64,13 +64,13 @@ module Plaidio
64
64
 
65
65
  def post(path,type,username,password,email)
66
66
  url = BASE_URL + path
67
- @response = RestClient.post url, client_id: self.instance_variable_get(:'@customer_id') ,secret: self.instance_variable_get(:'@secret'), type: type , credentials: {username: username, password: password} , email: email
67
+ @response = RestClient.post url, :client_id => self.instance_variable_get(:'@customer_id') ,:secret => self.instance_variable_get(:'@secret'), :type => type ,:credentials => {:username => username, :password => password} ,:email => email
68
68
  return @response
69
69
  end
70
70
 
71
71
  def get(path,id)
72
72
  url = BASE_URL + path
73
- @response = RestClient.get(url, params: {entity_id: id})
73
+ @response = RestClient.get(url,:params => {:entity_id => id})
74
74
  return @response
75
75
  end
76
76
 
@@ -1,4 +1,4 @@
1
- module Plaidio
1
+ module Plaid
2
2
  module Configure
3
3
  attr_writer :customer_id, :secret
4
4
 
@@ -1,4 +1,4 @@
1
- module Plaidio
1
+ module Plaid
2
2
  # This is used when a customer needs to be defined by the plaid access token.
3
3
  # Abstracting as a class makes it easier since we wont have to redefine the access_token over and over.
4
4
  class Customer
@@ -7,8 +7,8 @@ module Plaidio
7
7
 
8
8
  # This initializes our instance variables, and sets up a new Customer class.
9
9
  def initialize
10
- Plaidio::Configure::KEYS.each do |key|
11
- instance_variable_set(:"@#{key}", Plaidio.instance_variable_get(:"@#{key}"))
10
+ Plaid::Configure::KEYS.each do |key|
11
+ instance_variable_set(:"@#{key}", Plaid.instance_variable_get(:"@#{key}"))
12
12
  end
13
13
  end
14
14
 
@@ -83,19 +83,19 @@ module Plaidio
83
83
 
84
84
  def get(path,access_token,options={})
85
85
  url = BASE_URL + path
86
- @response = RestClient.get(url, params: {client_id: self.instance_variable_get(:'@customer_id'), secret: self.instance_variable_get(:'@secret'), access_token: access_token})
86
+ @response = RestClient.get(url,:params => {:client_id => self.instance_variable_get(:'@customer_id'), :secret => self.instance_variable_get(:'@secret'), :access_token => access_token})
87
87
  return @response
88
88
  end
89
89
 
90
90
  def post(path,access_token,options={})
91
91
  url = BASE_URL + path
92
- @response = RestClient.post url, client_id: self.instance_variable_get(:'@customer_id') , secret: self.instance_variable_get(:'@secret'), access_token: access_token, mfa: @mfa
92
+ @response = RestClient.post url, :client_id => self.instance_variable_get(:'@customer_id') ,:secret => self.instance_variable_get(:'@secret'), :access_token => access_token, :mfa => @mfa
93
93
  return @response
94
94
  end
95
95
 
96
96
  def delete(path,access_token,options={})
97
97
  url = BASE_URL + path
98
- @response = RestClient.delete(url, params: {client_id: self.instance_variable_get(:'@customer_id'), secret: self.instance_variable_get(:'@secret'), access_token: access_token})
98
+ @response = RestClient.delete(url,:params => {:client_id => self.instance_variable_get(:'@customer_id'), :secret => self.instance_variable_get(:'@secret'), :access_token => access_token})
99
99
  return @response
100
100
  end
101
101
  end
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plaid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Crites
8
8
  - Gamble McAdam
9
+ - Rahul Ramakrishnan
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2014-04-10 00:00:00.000000000 Z
13
+ date: 2014-04-11 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: rest-client
@@ -67,19 +68,17 @@ dependencies:
67
68
  - - '>='
68
69
  - !ruby/object:Gem::Version
69
70
  version: '0'
70
- description: A simple to use ruby wrapper for Plaid API.
71
- email:
72
- - justin@guavatext.com
73
- - rahul@plaid.com
71
+ description: A simple to use ruby wrapper for Plaid.io API.
72
+ email: justin@guavatext.com
74
73
  executables: []
75
74
  extensions: []
76
75
  extra_rdoc_files: []
77
76
  files:
78
- - lib/plaidio.rb
79
- - lib/plaidio/config.rb
80
- - lib/plaidio/call.rb
81
- - lib/plaidio/customer.rb
82
- homepage: https://github.com/j4ustin/plaidio
77
+ - lib/plaid.rb
78
+ - lib/plaid/config.rb
79
+ - lib/plaid/call.rb
80
+ - lib/plaid/customer.rb
81
+ homepage: https://github.com/j4ustin/plaid
83
82
  licenses:
84
83
  - MIT
85
84
  metadata: {}
@@ -102,5 +101,5 @@ rubyforge_project:
102
101
  rubygems_version: 2.0.3
103
102
  signing_key:
104
103
  specification_version: 4
105
- summary: Plaid api gem
104
+ summary: Plaid.io api gem
106
105
  test_files: []
@@ -1,20 +0,0 @@
1
- require 'plaidio/config'
2
- require 'plaidio/call'
3
- require 'plaidio/customer'
4
- require 'rest_client'
5
- module Plaidio
6
- class << self
7
- include Plaidio::Configure
8
-
9
- # Defined when a user exists with a unique access_token. Ex: Plaidio.customer.get_transactions
10
- def customer
11
- @customer = Plaidio::Customer.new
12
- end
13
-
14
- # Defined for generic calls without access_tokens required. Ex: Plaidio.call.add_accounts(username,password,type)
15
- def call
16
- @call = Plaidio::Call.new
17
- end
18
-
19
- end
20
- end