Class: Odin::Types::FormatConstraint

Inherits:
Object
  • Object
show all
Defined in:
lib/odin/types/schema.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(format_name:) ⇒ FormatConstraint

Returns a new instance of FormatConstraint.



93
94
95
96
97
# File 'lib/odin/types/schema.rb', line 93

def initialize(format_name:)
  @kind = :format
  @format_name = format_name.freeze
  freeze
end

Instance Attribute Details

#format_nameObject (readonly)

Returns the value of attribute format_name.



91
92
93
# File 'lib/odin/types/schema.rb', line 91

def format_name
  @format_name
end

#kindObject (readonly)

Returns the value of attribute kind.



91
92
93
# File 'lib/odin/types/schema.rb', line 91

def kind
  @kind
end