Exception: Clacky::ApiExtension::Halt
- Inherits:
-
StandardError
- Object
- StandardError
- Clacky::ApiExtension::Halt
- Defined in:
- lib/clacky/api_extension.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, payload, content_type) ⇒ Halt
constructor
A new instance of Halt.
Constructor Details
#initialize(status, payload, content_type) ⇒ Halt
Returns a new instance of Halt.
35 36 37 38 39 40 |
# File 'lib/clacky/api_extension.rb', line 35 def initialize(status, payload, content_type) super("api_ext halt #{status}") @status = status @payload = payload @content_type = content_type end |
Instance Attribute Details
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
33 34 35 |
# File 'lib/clacky/api_extension.rb', line 33 def content_type @content_type end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
33 34 35 |
# File 'lib/clacky/api_extension.rb', line 33 def payload @payload end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
33 34 35 |
# File 'lib/clacky/api_extension.rb', line 33 def status @status end |