Exception: SharedCountApi::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, message) ⇒ Error

Returns a new instance of Error.



10
11
12
# File 'lib/shared_count_api.rb', line 10

def initialize(type, message)
  @type, @message = type, message
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



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

def error
  @error
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end