Sha256: 141d60d9bee0d291dd4e06fb9076534b96e5ec71ad6bd5533079d6efa97408b0

Contents?: true

Size: 212 Bytes

Versions: 4

Compression:

Stored size: 212 Bytes

Contents

module Restspec
  class << self
    def example_for(schema_name, extensions = {})
      schema = Restspec::SchemaStore.get(schema_name)
      Schema::SchemaExample.new(schema, extensions).value
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
restspec-0.0.4 lib/restspec/shortcuts.rb
restspec-0.0.3 lib/restspec/shortcuts.rb
restspec-0.0.2 lib/restspec/shortcuts.rb
restspec-0.0.1 lib/restspec/shortcuts.rb