Class: TocDoc::VisitMotive

Inherits:
Resource show all
Defined in:
lib/toc_doc/models/visit_motive.rb

Overview

Represents a visit motive (reason for consultation) returned by the booking info endpoint.

The +id+ and +name+ fields are the primary attributes. Additional fields such as +restrictions+ are accessible via dot-notation inherited from Resource.

Examples:

motive = TocDoc::VisitMotive.new('id' => 1, 'name' => 'Consultation', 'restrictions' => [])
motive.id    #=> 1
motive.name  #=> "Consultation"

Instance Attribute Summary

Attributes inherited from Resource

#attrs

Method Summary

Methods inherited from Resource

#==, #[], #[]=, #attribute_names, #initialize, #inspect, main_attrs, #method_missing, normalize_attrs, #to_h, #to_json

Constructor Details

This class inherits a constructor from TocDoc::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class TocDoc::Resource