Class: Mb::StaffService
- Defined in:
- lib/mindbody/staff_service.rb
Constant Summary
Constants inherited from Service
Constants included from Meta
Meta::NS, Meta::WSDL_POSTFIX, Meta::WSDL_PREFIX
Instance Attribute Summary
Attributes inherited from Service
#client, #src_creds, #usr_creds
Instance Method Summary collapse
Methods inherited from Service
#build_request, #endpoint, #get_service, #initialize, local_document, #local_document, #method_missing, #respond_to?, service
Methods included from Meta
Constructor Details
This class inherits a constructor from Mb::Service
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Mb::Service
Instance Method Details
#options ⇒ Object
11 12 13 |
# File 'lib/mindbody/staff_service.rb', line 11 def @arr end |
#options=(arr = []) ⇒ Object
5 6 7 8 9 |
# File 'lib/mindbody/staff_service.rb', line 5 def (arr = []) @arr = arr @arr = [@arr] if @arr.class != Array validate end |
#validate ⇒ Object
15 16 17 |
# File 'lib/mindbody/staff_service.rb', line 15 def validate @arr.each {|ent| throw TypeError.new "Expected entry to be of type #{StaffOptions.to_s}, but was of type #{ent.class.to_s}" if ent.class != StaffOptions} end |