Class: Zm::Client::AppointmentsCollection
- Inherits:
-
Base::AccountSearchObjectsCollection
- Object
- Base::ObjectsCollection
- Base::AccountObjectsCollection
- Base::AccountSearchObjectsCollection
- Zm::Client::AppointmentsCollection
- Defined in:
- lib/zm/client/appointment/appointments_collection.rb
Overview
collection of appointments
Constant Summary
Constants inherited from Base::ObjectsCollection
Base::ObjectsCollection::METHODS_MISSING_LIST
Instance Attribute Summary
Attributes inherited from Base::AccountSearchObjectsCollection
Attributes inherited from Base::ObjectsCollection
Instance Method Summary collapse
- #find(id) ⇒ Object
-
#initialize(parent) ⇒ AppointmentsCollection
constructor
A new instance of AppointmentsCollection.
Methods inherited from Base::AccountSearchObjectsCollection
#end_at, #folder_ids, #folders, #ids, #order, #reset, #start_at, #where
Methods inherited from Base::ObjectsCollection
#all, #all!, #build_from_entry, #first, #logger, #method_missing, #new, #order, #page, #per_page, #respond_to_missing?
Constructor Details
#initialize(parent) ⇒ AppointmentsCollection
Returns a new instance of AppointmentsCollection.
7 8 9 10 11 12 13 |
# File 'lib/zm/client/appointment/appointments_collection.rb', line 7 def initialize(parent) super(parent) @child_class = Appointment @builder_class = AppointmentsBuilder @type = 'appointment' @sort_by = 'dateAsc' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Zm::Client::Base::ObjectsCollection
Instance Method Details
#find(id) ⇒ Object
15 16 17 18 19 |
# File 'lib/zm/client/appointment/appointments_collection.rb', line 15 def find(id) rep = @parent.sacc.get_msg(@parent.token, id) entry = rep[:Body][:GetMsgResponse][:m].first AppointmentJsnsInitializer.new(@parent, entry).create end |