Class: WebfleetConnect::Session
- Inherits:
-
Object
- Object
- WebfleetConnect::Session
- Includes:
- Actions::Addresses, Actions::Areas, Actions::Configuration, Actions::Drivers, Actions::Events, Actions::Geocoding, Actions::LINKConnect, Actions::MessageQueues, Actions::Messages, Actions::Miscellaneous, Actions::Objects, Actions::Orders, Actions::Plugins, Actions::Reporting, Actions::Trips, Actions::UserManagement, Actions::VehicleMaintenance
- Defined in:
- lib/webfleet_connect/session.rb
Instance Method Summary collapse
-
#initialize(credentials, config) ⇒ Session
constructor
A new instance of Session.
- #json? ⇒ Boolean
Methods included from Actions
Methods included from Helpers::CaseHelper
#pascal_to_cammel, #pascal_to_snake, #snake_to_cammel, #snake_to_pascal
Constructor Details
#initialize(credentials, config) ⇒ Session
Returns a new instance of Session.
40 41 42 43 44 |
# File 'lib/webfleet_connect/session.rb', line 40 def initialize(credentials, config) @credentials = credentials @config = config @connection = Connection.new(self) end |
Instance Method Details
#json? ⇒ Boolean
46 47 48 |
# File 'lib/webfleet_connect/session.rb', line 46 def json? @config.json? end |