class HTTPRange
Constants
- VERSION
Attributes
attribute[R]
first[R]
first_inclusive[R]
last[R]
last_inclusive[R]
max[R]
order[R]
Public Class Methods
new(fields)
click to toggle source
# File lib/http_range.rb, line 15 def initialize(fields) fields.each { |field, value| instance_variable_set(:"@#{field}", value) } end
parse(header_string)
click to toggle source
# File lib/http_range.rb, line 19 def self.parse(header_string) new(Parser.new(header_string).extract_parts_hash) end