meo_wallet 0.0.2 → 0.1.0

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: d85ade40c3984952e4f6f1aa0df959420bfad4cd
4
- data.tar.gz: 671fc2e37c62890615322bbefa7ed76d6e12078b
3
+ metadata.gz: 2e65f8d828030870ace9d213a1ddb1d0b0bc5a5b
4
+ data.tar.gz: b5bce4857bd0e03e783d717a4fd20b0081b344de
5
5
  SHA512:
6
- metadata.gz: 970bc2188b77679688be1acc19eac2bb9b117359fbe75621be1b0796cf36ab87cec6949f108c58157b31db8b6d662aab0d657376840cc37ea80e7dde39cd198a
7
- data.tar.gz: 451c34c679916c5726aa6af35888907a6e14aab0228003d7f49449d1f387acc1095a69c9c914f196071337c45a97451cad6661c5425fe771de97ea88731c7cff
6
+ metadata.gz: cb4870900377f0a0cb331514b41634b804ccd5e94a3dc20bac1f06ed45b696600fdcdc92fa3df8b5bb2e9025d887fa76f08a56e2e0849a47818c853ab6bfe39d
7
+ data.tar.gz: c6509f74d72680247b34b0b7e7a87094acdb9af1309e679d1493baf77e54748a4583ba15ea92bd921a3d7cf057ff04c592444de668e029588bf8609bb5f97f6a
@@ -1,15 +1,18 @@
1
+ require 'httparty'
2
+
1
3
  module MeoWallet
2
4
  class Client
3
5
  include HTTParty
6
+
4
7
  base_uri 'https://services.wallet.codebits.eu'
5
8
  headers 'Content-Type' => 'application/json'
6
9
 
7
10
  def initialize(secret)
8
- self.headers 'Authorization' => "WalletPT #{secret}"
11
+ self.class.headers 'Authorization' => "WalletPT #{secret}"
9
12
  end
10
13
 
11
14
  def create_checkout(payment_data)
12
- self.post '/api/v2/checkout', body: payment_data.to_json
15
+ self.class.post '/api/v2/checkout', body: payment_data.to_json
13
16
  end
14
17
  end
15
18
  end
@@ -1,3 +1,3 @@
1
1
  module MeoWallet
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
data/lib/meo_wallet.rb CHANGED
@@ -1,4 +1,5 @@
1
- require "meo_wallet/version"
1
+ require 'meo_wallet/version'
2
+ require 'meo_wallet/client'
2
3
 
3
4
  module MeoWallet
4
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meo_wallet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Palhas