Exception: Clacky::ApiExtension::Halt

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject (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

#payloadObject (readonly)

Returns the value of attribute payload.



33
34
35
# File 'lib/clacky/api_extension.rb', line 33

def payload
  @payload
end

#statusObject (readonly)

Returns the value of attribute status.



33
34
35
# File 'lib/clacky/api_extension.rb', line 33

def status
  @status
end