@return [Boolean]
# File lib/twitter/configurable.rb, line 54 def bearer_token? !!@bearer_token end
Convenience method to allow configuration options to be set in a block
@raise [Twitter::Error::ConfigurationError] Error is raised when supplied
twitter credentials are not a String or Symbol.
# File lib/twitter/configurable.rb, line 34 def configure yield self validate_credential_type! self end
@return [Boolean]
# File lib/twitter/configurable.rb, line 59 def credentials? credentials.values.all? || bearer_token? end
# File lib/twitter/configurable.rb, line 40 def reset! Twitter::Configurable.keys.each do |key| instance_variable_set(:"@#{key}", Twitter::Default.options[key]) end self end
Generated with the Darkfish Rdoc Generator 2.