class Pluct::Schema
Attributes
data[R]
path[R]
Public Class Methods
from_header(headers)
click to toggle source
# File lib/pluct/schema.rb, line 23 def self.from_header(headers) return nil unless headers[:content_type] schema = headers[:content_type].match('.*profile=([^;]+);?') return nil unless schema Schema.new(schema[1]) end
new(path)
click to toggle source
# File lib/pluct/schema.rb, line 7 def initialize(path) @path = path end
Public Instance Methods
links()
click to toggle source
# File lib/pluct/schema.rb, line 15 def links self.data["links"] end
to_s()
click to toggle source
# File lib/pluct/schema.rb, line 19 def to_s @path end