Class: TocDoc::Speciality

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

Overview

Represents a speciality returned by the autocomplete endpoint.

All fields (+value+, +slug+, +name+) are primitives and are accessed via dot-notation inherited from Resource.

Examples:

speciality = TocDoc::Speciality.new('value' => 228, 'slug' => 'homeopathe', 'name' => 'Homéopathe')
speciality.value  #=> 228
speciality.slug   #=> "homeopathe"
speciality.name   #=> "Homéopathe"

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