Class: Apicraft::Mocker::Integer

Inherits:
Number show all
Defined in:
lib/apicraft/mocker/integer.rb

Overview

Generate fake values for integers

Instance Attribute Summary

Attributes inherited from Base

#schema

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Apicraft::Mocker::Base

Instance Method Details

#mockObject



7
8
9
# File 'lib/apicraft/mocker/integer.rb', line 7

def mock
  super.to_i
end