marqueta 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/marqueta.rb +58 -0
  3. metadata +44 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9a07ce6997dcff4629b18d49c63f805f7eb195a48ce30a60ccfe0d37c8158a99
4
+ data.tar.gz: a43fc77e033bd058d8342eca57cee4213f4acd8dd2a6ecf6c33fc52292c82697
5
+ SHA512:
6
+ metadata.gz: 8ccb6c73a48fb06c029c2eb56b648832b27f59cea7ca34a12f4fcb5c20e588eb12adffc4982fa3eefb3296dddcaee721956b7cc6976c6ff452861156a414d233
7
+ data.tar.gz: 48c7c4bcc3ee3b725ee0766eb540a8f6eba0d5dc7571fed41dff6ef149066f674aee220dccc2d856849be0262d8a7d7aefb013f17ca293aab97d3d7dd282d208
@@ -0,0 +1,58 @@
1
+ module Marqueta
2
+
3
+ require 'rest-client'
4
+ require 'json'
5
+ class Gem
6
+
7
+ def self.marqueta
8
+ puts "YOU ARE AWESOME!!"
9
+
10
+ @base_url = "https://shared-sandbox-api.marqeta.com/v3/"
11
+ @app_token = "user44691542974140"
12
+ @master_token = "64b08916-d571-4916-8594-32cf78534938"
13
+
14
+ RestClient::Request.execute({
15
+ method: :post,
16
+ url: @base_url + "fundingsources/program",
17
+ payload: {
18
+ name: 'Unlimited Funds',
19
+ active: true
20
+ }.to_json,
21
+ user: @app_token,
22
+ password: @master_token,
23
+ headers: {
24
+ content_type: :json,
25
+ accept: :json
26
+ }
27
+ })
28
+ end
29
+
30
+
31
+ end
32
+
33
+ # def self.test?
34
+
35
+
36
+ # @base_url = "https://shared-sandbox-api.marqeta.com/v3/"
37
+ # @app_token = "user44691542974140"
38
+ # @master_token = "64b08916-d571-4916-8594-32cf78534938"
39
+ # end
40
+
41
+ # def create_funding
42
+ # RestClient::Request.execute({
43
+ # method: :post,
44
+ # url: @base_url + "fundingsources/program",
45
+ # payload: {
46
+ # name: 'Unlimited Funds',
47
+ # active: true
48
+ # }.to_json,
49
+ # user: @app_token,
50
+ # password: @master_token,
51
+ # headers: {
52
+ # content_type: :json,
53
+ # accept: :json
54
+ # }
55
+ # })
56
+ # end
57
+ end
58
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: marqueta
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Priyanka Sharma
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2011-09-29 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/marqueta.rb
20
+ homepage: https://github.com/PriyankaSharma4/marqueta_gem.git
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.7.6
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: For Use of marqueta api
44
+ test_files: []