Class: JSONAPIonify::Types::StringType
- Defined in:
- lib/jsonapionify/types/string_type.rb
Direct Known Subclasses
Defined Under Namespace
Classes: StringSampler
Instance Attribute Summary
Attributes inherited from BaseType
Instance Method Summary collapse
Methods inherited from BaseType
dumper, #initialize, loader, #name, #not_null!, #not_null?, #to_s
Methods included from Callbacks
Constructor Details
This class inherits a constructor from JSONAPIonify::Types::BaseType
Instance Method Details
#sample(field_name) ⇒ Object
74 75 76 |
# File 'lib/jsonapionify/types/string_type.rb', line 74 def sample(field_name) StringSampler.new(field_name).value end |