Class: WebfleetConnect::Session

Instance Method Summary collapse

Methods included from Actions

#add_action

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

Returns:

  • (Boolean)


46
47
48
# File 'lib/webfleet_connect/session.rb', line 46

def json?
  @config.json?
end