class Paramore::FieldSchema

Constants

DEFAULT_OPTIONS

Attributes

compact[R]
empty[R]
given_type[R]
nullable[R]

Public Class Methods

new(given_type, null:, empty:, compact:) click to toggle source
# File lib/paramore/field_schema.rb, line 9
def initialize(given_type, null:, empty:, compact:)
  @given_type = given_type
  @nullable = null
  @empty = empty
  @compact = compact
end

Public Instance Methods

compact?() click to toggle source
# File lib/paramore/field_schema.rb, line 16
def compact?
  compact
end
nullable?() click to toggle source
# File lib/paramore/field_schema.rb, line 20
def nullable?
  nullable
end
type() click to toggle source
# File lib/paramore/field_schema.rb, line 28
def type
  given_type
end
use_empty_strings?() click to toggle source
# File lib/paramore/field_schema.rb, line 24
def use_empty_strings?
  empty
end