Exception: Blueauth::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/blueauth/error.rb

Direct Known Subclasses

BlueError

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Error

Returns a new instance of Error.



4
5
6
# File 'lib/blueauth/error.rb', line 4

def initialize(options = {})
  options.is_a?(String) ? @options = {:message => options} : @options = options
end

Instance Method Details

#messageObject



8
9
10
# File 'lib/blueauth/error.rb', line 8

def message
  @options[:message]
end

#optionsObject



12
13
14
# File 'lib/blueauth/error.rb', line 12

def options
  @options
end