mindbody 0.0.5 → 0.0.6

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.
@@ -34,10 +34,15 @@ module Mb
34
34
 
35
35
  attr_accessor :client, :src_creds, :usr_creds
36
36
 
37
- def initialize(options = {})
37
+
38
+ def initialize args
39
+ if arg.is_a? Mb::SourceCredentials
40
+ @src_creds = args
41
+ else
42
+ #assume a hash
38
43
  @client = nil
39
- @src_creds = options[:source_credentials]
40
- @usr_creds = options[:user_credentials]
44
+ @src_creds = args[:source_credentials]
45
+ @usr_creds = args[:user_credentials]
41
46
 
42
47
  if local_document
43
48
  @client = Savon::Client.new do
@@ -46,6 +51,7 @@ module Mb
46
51
  else
47
52
  @client = Savon::Client.new endpoint
48
53
  end
54
+ end
49
55
  end
50
56
 
51
57
  #Builds the inner XML of the Mindbody SOAP call
@@ -1,3 +1,3 @@
1
1
  module Mindbody
2
- Version = "0.0.5"
2
+ Version = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mindbody
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-15 00:00:00.000000000 -08:00
12
+ date: 2011-12-21 00:00:00.000000000 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: savon
17
- requirement: &2157456940 !ruby/object:Gem::Requirement
17
+ requirement: &2153535740 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,7 +22,7 @@ dependencies:
22
22
  version: 0.9.2
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2157456940
25
+ version_requirements: *2153535740
26
26
  description: Ruby's interface to the Mindbody 0.5 API with no bell's and whistles
27
27
  email: tgoffman@gmail.com
28
28
  executables: []