Sha256: f5d9c26ee5ca97c812b4de22b96492cd777810e16221bab086b66361eb030b43

Contents?: true

Size: 456 Bytes

Versions: 1

Compression:

Stored size: 456 Bytes

Contents

module LHC::Formats
  class Plain
    include LHC::BasicMethodsConcern

    def self.request(options)
      options[:format] = new
      super(options)
    end

    def as_json(input)
      parse(input)
    end

    def as_open_struct(input)
      parse(input)
    end

    def to_body(input)
      input
    end

    def to_s
      'plain'
    end

    def to_sym
      to_s.to_sym
    end

    private

    def parse(input)
      input
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lhc-10.1.0 lib/lhc/formats/plain.rb