Module: Cyberweb::BaseModule::ContentType

Included in:
Cyberweb::BaseModule
Defined in:
lib/cyberweb/base_module/content_type/content_type.rb

Overview

Cyberweb::BaseModule::ContentType

Instance Method Summary collapse

Instance Method Details

#content_type_is_htmlObject

#

content_type_is_html

#


46
47
48
49
50
# File 'lib/cyberweb/base_module/content_type/content_type.rb', line 46

def content_type_is_html
  {
    'Content-Type' => 'text/html'
  }
end

#content_type_is_jpegObject Also known as: content_type_is_jpg

#

content_type_is_jpeg

#


27
28
29
30
31
# File 'lib/cyberweb/base_module/content_type/content_type.rb', line 27

def content_type_is_jpeg
  {
    'Content-Type' => 'image/jpeg'
  }
end

#content_type_is_jsonObject

#

content_type_is_json (json tag)

#


18
19
20
21
22
# File 'lib/cyberweb/base_module/content_type/content_type.rb', line 18

def content_type_is_json
  {
    'Content-Type' => 'text/json'
  }
end

#content_type_is_plain_textObject Also known as: content_type_is_plain, content_type_is_text

#

content_type_is_plain_text

#


36
37
38
39
40
# File 'lib/cyberweb/base_module/content_type/content_type.rb', line 36

def content_type_is_plain_text
  {
    'Content-Type' => 'text/plain'
  }
end