Module: Doze::Page

Defined in:
lib/doze/page.rb

Overview

Mixin for returning the data as is, without serializing to another format.

Instance Method Summary collapse

Instance Method Details

#getObject



6
7
8
9
# File 'lib/doze/page.rb', line 6

def get
  media_type = Doze::MediaType.new('text/html')
  Doze::Entity.new(media_type) { get_data }
end