class Xenon::Headers::ContentType
Attributes
content_type[R]
Public Class Methods
new(content_type)
click to toggle source
# File lib/xenon/headers/content_type.rb, line 10 def initialize(content_type) @content_type = content_type end
parse(s)
click to toggle source
# File lib/xenon/headers/content_type.rb, line 14 def self.parse(s) new(Xenon::ContentType.parse(s)) end
Public Instance Methods
to_s()
click to toggle source
# File lib/xenon/headers/content_type.rb, line 18 def to_s @content_type.to_s end