Class: Apicraft::Mocker::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/apicraft/mocker/base.rb

Overview

Base class for generating fake values for different data types. Check subclasses

Direct Known Subclasses

AllOf, AnyOf, Array, Boolean, Number, Object, OneOf, String

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(schema) ⇒ Base

Returns a new instance of Base.



11
12
13
# File 'lib/apicraft/mocker/base.rb', line 11

def initialize(schema)
  @schema = schema
end

Instance Attribute Details

#schemaObject

Returns the value of attribute schema.



9
10
11
# File 'lib/apicraft/mocker/base.rb', line 9

def schema
  @schema
end