Module: Mountapi::Schema::Base

Included in:
Array, Boolean, Integer, Number, Object, String
Defined in:
lib/mountapi/schema/base.rb

Overview

Mixin for schema behaviour

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/mountapi/schema/base.rb', line 7

def self.included(base)
  base.class_eval do
    extend ClassMethods
    include InstanceMethods
    extend Forwardable
    attr_reader :open_api_schema
    def_delegators :open_api_schema, :type, :required
  end
end