wingrunr21 / mindbody-api

A Ruby interface to the MindBody API v0.5
http://wingrunr21.github.com/mindbody-api
MIT License
29 stars 46 forks source link

ClassService operations incomplete #15

Closed psulightning closed 10 years ago

psulightning commented 10 years ago

ClassService does not have all operations defined in class definition.

MindBody::Services::ClassService.new.client.operations: [:get_classes, :update_client_visits, :get_class_visits, :get_class_descriptions, :get_enrollments, :get_class_schedules, :add_clients_to_classes, :remove_clients_from_classes, :add_clients_to_enrollments, :remove_from_waitlist, :get_semesters, :get_courses, :get_waitlist_entries]

MindBody::Services::ClassService.new.methods.sort: [:!, :!=, :!~, :<=>, :==, :===, :=~, :id, :send, :`, :acts_like?, :as_json, :blank?, :breakpoint, :byebug, :capture, :class, :class_eval, :client, :clone, :debugger, :deep_dup, :define_singleton_method, :display, :dup, :duplicable?, :enable_warnings, :enum_for, :eql?, :equal?, :extend, :freeze, :frozen?, :gem, :get_class_descriptions, :get_class_schedules, :get_class_visits, :get_classes, :hash, :html_safe?, :in?, :inspect, :instance_eval, :instance_exec, :instance_of?, :instance_values, :instance_variable_defined?, :instance_variable_get, :instance_variable_names, :instance_variable_set, :instance_variables, :is_a?, :is_haml?, :kind_of?, :load, :load_dependency, :method, :methods, :nil?, :object_id, :presence, :present?, :pretty_inspect, :pretty_print, :pretty_print_cycle, :pretty_print_inspect, :pretty_print_instance_variables, :private_methods, :protected_methods, :psych_to_yaml, :public_method, :public_methods, :public_send, :quietly, :remove_instance_variable, :require, :require_dependency, :require_or_load, :respond_to?, :send, :silence, :silence_stderr, :silence_stream, :silence_warnings, :singleton_class, :singleton_methods, :suppress, :suppress_warnings, :taint, :tainted?, :tap, :to_enum, :to_json, :to_param, :to_query, :to_s, :to_yaml, :to_yaml_properties, :trust, :try, :try!, :unloadable, :untaint, :untrust, :untrusted?, :with_options, :with_warnings]

wingrunr21 commented 10 years ago

I'm assuming by this you mean that the ClassService does not implement all of the service endpoints in the MindBody documentation? yes, that's correct: https://github.com/wingrunr21/mindbody-api/blob/master/lib/mindbody-api/services/class_service.rb

The gem is in alpha and I haven't been able to manually test the remaining ClassService methods to add them to the gem. It's a TODO item.

wingrunr21 commented 10 years ago

16 will track this