pinter 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/pinter.rb +14 -0
  2. data/lib/pinter/version.rb +1 -1
  3. metadata +2 -2
data/lib/pinter.rb CHANGED
@@ -29,6 +29,20 @@ module Pinter
29
29
  def self.api_secret=(api_secret)
30
30
  @api_secret = api_secret
31
31
  end
32
+
33
+ def self.subdomain
34
+ @subdomain
35
+ end
36
+
37
+ def self.subdomain=(subdomain)
38
+ @subdomain = subdomain
39
+ end
40
+
41
+ def self.url(options = {})
42
+ url = "https://#{Pinter.subdomain}.pintpay.com/"
43
+ url << "?#{options.to_params}" unless options.empty?
44
+ url
45
+ end
32
46
  end
33
47
 
34
48
  require 'pinter/hash'
@@ -1,3 +1,3 @@
1
1
  module Pinter
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pinter
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.1.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nathan Borgo
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-24 00:00:00 -05:00
13
+ date: 2011-05-25 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency