Class: Keiyaku::Emitter::Model

Inherits:
Data
  • Object
show all
Defined in:
lib/keiyaku/emitter.rb

Overview

One model class to be emitted. fields maps the Ruby name to the Ruby source for its type, from to the JSON name where the two differ, and open carries what additionalProperties said. Being a value, two of these built from the same schema compare equal, which is what lets an inline schema appearing twice be emitted once.

Instance Attribute Summary collapse

Instance Attribute Details

#fieldsObject (readonly)

Returns the value of attribute fields

Returns:

  • (Object)

    the current value of fields



24
25
26
# File 'lib/keiyaku/emitter.rb', line 24

def fields
  @fields
end

#fromObject (readonly)

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



24
25
26
# File 'lib/keiyaku/emitter.rb', line 24

def from
  @from
end

#openObject (readonly)

Returns the value of attribute open

Returns:

  • (Object)

    the current value of open



24
25
26
# File 'lib/keiyaku/emitter.rb', line 24

def open
  @open
end

#requiredObject (readonly)

Returns the value of attribute required

Returns:

  • (Object)

    the current value of required



24
25
26
# File 'lib/keiyaku/emitter.rb', line 24

def required
  @required
end