Method: Jdoc::Property#options

Defined in:
lib/jdoc/property.rb

#optionsHash

Returns Key-Value pair of metadata of this property.

Returns:

  • (Hash)

    Key-Value pair of metadata of this property



13
14
15
16
17
18
19
20
21
# File 'lib/jdoc/property.rb', line 13

def options
  {
    Example: example,
    Type: type,
    Format: format,
    Pattern: pattern,
    ReadOnly: read_only,
  }.reject {|key, value| value.nil? }
end