Class: Crm::Type
- Inherits:
-
Core::BasicResource
- Object
- Core::BasicResource
- Crm::Type
- Includes:
- Core::Mixins::ChangeLoggable, Core::Mixins::Findable, Core::Mixins::Inspectable, Core::Mixins::Modifiable
- Defined in:
- lib/crm/type.rb
Overview
An Infopark WebCRM type defines a set of attributes associated with every instance of the type.
Class Method Summary collapse
-
.all(include_deleted: false) ⇒ Array<Type>
Returns all types.
Methods included from Core::Mixins::Findable::ClassMethods
Methods included from Core::Mixins::Modifiable::ClassMethods
Methods included from Core::Mixins::Inspectable
Methods included from Core::Mixins::ChangeLoggable
Methods included from Core::Mixins::Modifiable
#delete, #deleted?, #undelete, #update
Methods inherited from Core::BasicResource
base_type, #eql?, #id, path, #path, #reload, resource_name, #type
Methods included from Core::Mixins::AttributeProvider
#[], #attributes, #initialize, #method_missing, #methods, #raw, #respond_to_missing?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Crm::Core::Mixins::AttributeProvider
Class Method Details
.all(include_deleted: false) ⇒ Array<Type>
Returns all types.
72 73 74 75 76 |
# File 'lib/crm/type.rb', line 72 def self.all(include_deleted: false) Core::RestApi.instance.get('types', { include_deleted: include_deleted }).map do |item| new(item) end end |