Sha256: 94a565c64734adfe60955b23adfcfdd16cf6c8e23b78b010a4203a5885f11bf1

Contents?: true

Size: 802 Bytes

Versions: 5

Compression:

Stored size: 802 Bytes

Contents

require 'active_support/all' # rubocop:disable Style/FileName
require 'grape'

module GrapeApiary
  autoload :Version,         'grape-apiary/version'
  autoload :Config,          'grape-apiary/config'
  autoload :Parameter,       'grape-apiary/parameter'
  autoload :SampleGenerator, 'grape-apiary/sample_generator'
  autoload :Route,           'grape-apiary/route'
  autoload :Resource,        'grape-apiary/resource'
  autoload :Blueprint,       'grape-apiary/blueprint'

  def self.config
    block_given? ? yield(Config) : Config
  end
end

class UnsupportedIDType < StandardError
  def message
    'Unsupported id type, supported types are [integer, uuid, bson]'
  end
end

class BSONNotDefinied < StandardError
  def message
    'BSON type id requested but bson library is not present'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grape-apiary-1.0.0 lib/grape-apiary.rb
grape-apiary-0.2.0 lib/grape-apiary.rb
grape-apiary-0.1.2 lib/grape-apiary.rb
grape-apiary-0.1.1 lib/grape-apiary.rb
grape-apiary-0.1.0 lib/grape-apiary.rb