Class: HappyPdf::Schema

Inherits:
Object
  • Object
show all
Defined in:
lib/happypdf/schema.rb,
lib/happypdf/version.rb

Constant Summary collapse

VERSION =
'0.1.5'

Class Method Summary collapse

Class Method Details

.path(version = 'v1.0') ⇒ Object

Get the path to schema files. So it can be used f.ex. with json_schema_tools gem

Parameters:

  • version (String) (defaults to: 'v1.0')

    folder name to use



7
8
9
# File 'lib/happypdf/schema.rb', line 7

def self.path(version='v1.0')
  File.expand_path( File.join('../../schema', version), File.dirname(__FILE__))
end