Class: VoiceRecognitionBing::Credentials

Inherits:
Struct
  • Object
show all
Defined in:
lib/voice_recognition_bing/credentials.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



2
3
4
# File 'lib/voice_recognition_bing/credentials.rb', line 2

def token
  @token
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/voice_recognition_bing/credentials.rb', line 3

def valid?
  !token.nil? && !token.empty?
end