Class: Apicraft::Mocker::Base
- Inherits:
-
Object
- Object
- Apicraft::Mocker::Base
- Defined in:
- lib/apicraft/mocker/base.rb
Overview
Base class for generating fake values for different data types. Check subclasses
Instance Attribute Summary collapse
-
#schema ⇒ Object
Returns the value of attribute schema.
Instance Method Summary collapse
-
#initialize(schema) ⇒ Base
constructor
A new instance of Base.
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
#schema ⇒ Object
Returns the value of attribute schema.
9 10 11 |
# File 'lib/apicraft/mocker/base.rb', line 9 def schema @schema end |