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.



103
104
105
106
107
# File 'lib/odin/types/schema.rb', line 103

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.



101
102
103
# File 'lib/odin/types/schema.rb', line 101

def format_name
  @format_name
end

#kindObject (readonly)

Returns the value of attribute kind.



101
102
103
# File 'lib/odin/types/schema.rb', line 101

def kind
  @kind
end