Class: ApiTransformer::Route::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/api_transformer/route.rb

Overview

For passing back a header and status

Instance Attribute Summary collapse

Instance Attribute Details

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



7
8
9
# File 'lib/api_transformer/route.rb', line 7

def headers
  @headers
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



7
8
9
# File 'lib/api_transformer/route.rb', line 7

def status
  @status
end