Sha256: f43e3ea8d614c02251f0579eaa2a5bb847510c2f5817c2ee563dabcecb636db7

Contents?: true

Size: 203 Bytes

Versions: 4

Compression:

Stored size: 203 Bytes

Contents

module Restspec::Schema::Types
  class StringType < BasicType
    def example_for(attribute)
      Faker::Lorem.word
    end

    def valid?(attribute, value)
      value.is_a?(String)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
restspec-0.0.4 lib/restspec/schema/types/string_type.rb
restspec-0.0.3 lib/restspec/schema/types/string_type.rb
restspec-0.0.2 lib/restspec/schema/types/string_type.rb
restspec-0.0.1 lib/restspec/schema/types/string_type.rb