balanced 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,21 +52,20 @@ module Balanced
52
52
  #
53
53
  # @return [Account]
54
54
  def create_merchant email_address, merchant, bank_account_uri=nil, name=nil, meta={}
55
- account_attributes = Hash.new(
55
+ account_attributes = {
56
56
  :uri => self.accounts_uri,
57
57
  :email_address => email_address,
58
58
  :bank_account_uri => bank_account_uri,
59
59
  :name => name,
60
60
  :meta => meta,
61
- )
61
+ }
62
62
 
63
- if merchant.is_a? Hash
63
+ if merchant.respond_to? :keys
64
64
  account_attributes[:merchant] = merchant
65
65
  else
66
66
  account_attributes[:merchant_uri] = merchant
67
67
  end
68
68
 
69
- account_attributes
70
69
  account = Account.new account_attributes
71
70
  account.save
72
71
  end
@@ -1,3 +1,3 @@
1
1
  module Balanced
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: balanced
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: