Module: WebfleetConnect::Actions
- Includes:
- Helpers::CaseHelper
- Included in:
- Addresses, Areas, Configuration, Drivers, Events, Geocoding, LINKConnect, MessageQueues, Messages, Miscellaneous, Objects, Orders, Plugins, Reporting, Trips, UserManagement, VehicleMaintenance
- Defined in:
- lib/webfleet_connect/actions/actions.rb
Defined Under Namespace
Modules: Addresses, Areas, Configuration, Drivers, Events, Geocoding, LINKConnect, MessageQueues, Messages, Miscellaneous, Objects, Orders, Plugins, Reporting, Trips, UserManagement, VehicleMaintenance Classes: Action
Instance Method Summary collapse
Methods included from Helpers::CaseHelper
#pascal_to_cammel, #pascal_to_snake, #snake_to_cammel, #snake_to_pascal
Instance Method Details
#add_action(action_name, real_name = nil) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/webfleet_connect/actions/actions.rb', line 6 def add_action(action_name, real_name = nil) action_string = real_name || snake_to_cammel(action_name.to_s) class_eval %Q{ def #{action_name}(args = {}) exec WebfleetConnect::Actions::Action.new('#{action_string}', args) end } end |