Exception: SharkOnLambda::Errors::Base
- Inherits:
-
StandardError
- Object
- StandardError
- SharkOnLambda::Errors::Base
- Defined in:
- lib/shark_on_lambda/errors/base.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
- #detail ⇒ Object
-
#id ⇒ Object
Returns the value of attribute id.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#parameter ⇒ Object
Returns the value of attribute parameter.
-
#pointer ⇒ Object
Returns the value of attribute pointer.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
6 7 8 |
# File 'lib/shark_on_lambda/errors/base.rb', line 6 def code @code end |
#detail ⇒ Object
15 16 17 18 19 20 |
# File 'lib/shark_on_lambda/errors/base.rb', line 15 def detail return @detail if @detail.present? return nil if == self.class.name end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/shark_on_lambda/errors/base.rb', line 6 def id @id end |
#meta ⇒ Object
Returns the value of attribute meta.
6 7 8 |
# File 'lib/shark_on_lambda/errors/base.rb', line 6 def @meta end |
#parameter ⇒ Object
Returns the value of attribute parameter.
6 7 8 |
# File 'lib/shark_on_lambda/errors/base.rb', line 6 def parameter @parameter end |
#pointer ⇒ Object
Returns the value of attribute pointer.
6 7 8 |
# File 'lib/shark_on_lambda/errors/base.rb', line 6 def pointer @pointer end |
Class Method Details
.status(status_code) ⇒ Object
9 10 11 12 13 |
# File 'lib/shark_on_lambda/errors/base.rb', line 9 def self.status(status_code) define_method :status do status_code end end |
Instance Method Details
#title ⇒ Object
22 23 24 |
# File 'lib/shark_on_lambda/errors/base.rb', line 22 def title Rack::Utils::HTTP_STATUS_CODES[status] end |