Module: CloudConnect::Authentication

Included in:
Client, Notification
Defined in:
lib/cloud_connect/authentication.rb

Instance Method Summary collapse

Instance Method Details

#authenticated?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/cloud_connect/authentication.rb', line 11

def authenticated?
  !authentication.empty?
end

#authenticationObject



3
4
5
6
7
8
9
# File 'lib/cloud_connect/authentication.rb', line 3

def authentication
  if token
    {:token => token}
  else
    {}
  end
end