class ZohoHub::Settings::Module
Zoho CRM has standard modules such as, Leads, Accounts, Contacts, Deals, Forecasts, Activities, etc,. Using Zoho CRM REST API, you can retrieve the list of available modules.
convertable: Describes if the user can convert the record into another type of record.
For example: Convert Leads in to Deals.
creatable: Checks if the user can create a record in the current module. generated_type: Describes the type of module which would be generated by the user. There are
4 types: default, web, custom, linking.
api_supported: The modules which are currently not accessible by APIs have value as “false”.
If the modules are supported in the future, the value automatically changes to "true".
modified_time: The date and time of changes made by the user.
More details: www.zoho.com/crm/help/api/v2/#Modules-APIs
Constants
- REQUEST_PATH
Public Class Methods
all()
click to toggle source
# File lib/zoho_hub/settings/module.rb, line 34 def self.all modules = all_json modules.map { |json| new(json) } end
all_json()
click to toggle source
# File lib/zoho_hub/settings/module.rb, line 39 def self.all_json response = get(REQUEST_PATH) response[:modules] end
new(json = {})
click to toggle source
# File lib/zoho_hub/settings/module.rb, line 44 def initialize(json = {}) attributes.each { |attr| send("#{attr}=", json[attr]) } end