class Shaf::Responder::Response
Attributes
body[R]
content_type[R]
preload_links[RW]
resource[R]
serialized_hash[R]
Public Class Methods
new(content_type:, body:, serialized_hash: {}, resource: nil)
click to toggle source
# File lib/shaf/responder/base.rb, line 7 def initialize(content_type:, body:, serialized_hash: {}, resource: nil) @content_type = content_type @body = body @serialized_hash = serialized_hash @resource = resource @preload_links = [] end
Public Instance Methods
log_entry()
click to toggle source
# File lib/shaf/responder/base.rb, line 15 def log_entry "Response (#{resource.class}) payload: #{body}" end