Class: Odin::Types::FormatConstraint
- Inherits:
-
Object
- Object
- Odin::Types::FormatConstraint
- Defined in:
- lib/odin/types/schema.rb
Instance Attribute Summary collapse
-
#format_name ⇒ Object
readonly
Returns the value of attribute format_name.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
Instance Method Summary collapse
-
#initialize(format_name:) ⇒ FormatConstraint
constructor
A new instance of FormatConstraint.
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_name ⇒ Object (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 |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
101 102 103 |
# File 'lib/odin/types/schema.rb', line 101 def kind @kind end |