mindbody 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mindbody/service.rb +3 -3
- data/lib/mindbody/version.rb +1 -1
- metadata +3 -3
data/lib/mindbody/service.rb
CHANGED
@@ -6,7 +6,7 @@ module Mb
|
|
6
6
|
|
7
7
|
SRC_CREDS = "SourceCredentials"
|
8
8
|
class << self; attr_accessor :endpoint; end
|
9
|
-
|
9
|
+
class << self; attr_accessor :doc_path; end
|
10
10
|
|
11
11
|
#Sets up the service WSDL endpoint given a Mindbody service name
|
12
12
|
def self.service(service_name)
|
@@ -125,8 +125,8 @@ module Mb
|
|
125
125
|
plural = service_symbol.to_s.gsub("get_", "")
|
126
126
|
singular =plural[0..-1] #Remove last
|
127
127
|
r = response.to_hash
|
128
|
-
basify = lambda {|enda| (service_symbol.to_s + "_" + enda).to_sym}
|
129
|
-
r = r[basify('response')][basify('result'][plural.to_sym][singular.to_sym]
|
128
|
+
basify = lambda {|enda| (service_symbol.to_s + "_" + enda).to_sym }
|
129
|
+
r = r[basify('response')][basify('result')][plural.to_sym][singular.to_sym]
|
130
130
|
return r
|
131
131
|
end
|
132
132
|
|
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:
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ default_executable:
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: savon
|
17
|
-
requirement: &
|
17
|
+
requirement: &2156908460 !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: *
|
25
|
+
version_requirements: *2156908460
|
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: []
|