mindbody 0.0.2 → 0.0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mindbody/service.rb +16 -0
- data/lib/mindbody/version.rb +1 -1
- metadata +4 -5
- data/lib/blah.rb +0 -31
data/lib/mindbody/service.rb
CHANGED
@@ -67,6 +67,22 @@ module Mb
|
|
67
67
|
final_opts.delete(orig_key)
|
68
68
|
end
|
69
69
|
end
|
70
|
+
|
71
|
+
|
72
|
+
final_opts.values = final_opts.values.map do |item|
|
73
|
+
if item.kind_of?(Array)
|
74
|
+
tranformed = {}
|
75
|
+
if item[0].kind_of? Integer
|
76
|
+
transformed[:int] = item
|
77
|
+
elsif item[0].kind_of? String
|
78
|
+
transformed[:string] = item
|
79
|
+
else
|
80
|
+
break #Don't know how to deal with it, return regular
|
81
|
+
end
|
82
|
+
return transformed
|
83
|
+
end
|
84
|
+
item #Otherwise do nothing
|
85
|
+
end
|
70
86
|
|
71
87
|
request_body =
|
72
88
|
{
|
data/lib/mindbody/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.3.1
|
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
|
+
date: 2011-12-15 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: &
|
17
|
+
requirement: &2152704120 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,14 +22,13 @@ dependencies:
|
|
22
22
|
version: 0.9.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2152704120
|
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: []
|
29
29
|
extensions: []
|
30
30
|
extra_rdoc_files: []
|
31
31
|
files:
|
32
|
-
- lib/blah.rb
|
33
32
|
- lib/mindbody/appointment_service.rb
|
34
33
|
- lib/mindbody/class_service.rb
|
35
34
|
- lib/mindbody/client_service.rb
|
data/lib/blah.rb
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
require 'mindbody'
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
class Blah
|
6
|
-
def self.creds
|
7
|
-
return Mb::SourceCredentials.new('DriveDanceCentre', 'ddcstyle07', 14098);;
|
8
|
-
end
|
9
|
-
|
10
|
-
def self.serv
|
11
|
-
return Mb::StaffService.new
|
12
|
-
end
|
13
|
-
|
14
|
-
def self.get_staff_serv
|
15
|
-
st = Blah.serv
|
16
|
-
st.src_creds = Blah.creds
|
17
|
-
return st
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.get_class_serv
|
21
|
-
st = Mb::ClassService.new
|
22
|
-
st.src_creds = Blah.creds
|
23
|
-
return st
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.get_sserv
|
27
|
-
st = Mb::SaleService.new
|
28
|
-
st.src_creds = Blah.creds
|
29
|
-
return st
|
30
|
-
end
|
31
|
-
end
|