Exception: StripeMock::StripeMockError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/stripe_mock/errors/stripe_mock_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ StripeMockError

Returns a new instance of StripeMockError.



6
7
8
# File 'lib/stripe_mock/errors/stripe_mock_error.rb', line 6

def initialize(message)
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



4
5
6
# File 'lib/stripe_mock/errors/stripe_mock_error.rb', line 4

def message
  @message
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/stripe_mock/errors/stripe_mock_error.rb', line 10

def to_s
  @message
end