class Format

The Format class is provided as a base class for all publishing formats that are included in the Item class. Examples of format implementations include JsonObjectFormat and HttpStreamFormat.

Public Instance Methods

export() click to toggle source

The export method which should return a format-specific hash containing the required format-specific data.

# File lib/format.rb, line 21
def export
  raise NotImplementedError
end
name() click to toggle source

The name of the format which should return a string. Examples include 'json-object' and 'http-response'

# File lib/format.rb, line 15
def name
  raise NotImplementedError
end