class TapClutch::Schema

Models a JSON Schema required for Singer taps

Attributes

key_property[R]
stream[R]

Public Class Methods

new(stream, key_property) click to toggle source
# File lib/schema.rb, line 9
def initialize(stream, key_property)
  @stream = stream
  @key_property = key_property
end

Public Instance Methods

properties() click to toggle source
# File lib/schema.rb, line 51
def properties
  @properties ||= {}
end
to_hash() click to toggle source
# File lib/schema.rb, line 55
def to_hash
  {
    type: :SCHEMA,
    stream: stream,
    key_properties: [key_property],
    schema: {
      properties: properties
    }
  }
end