class Endymion::KindSpec

Attributes

api[R]
fields[R]
kind[R]

Public Class Methods

new(kind, api) click to toggle source
# File lib/endymion/kind_spec.rb, line 8
def initialize(kind, api)
  @kind = kind
  @fields = {}
  @api = api
end

Public Instance Methods

field(name, opts={}) click to toggle source
# File lib/endymion/kind_spec.rb, line 14
def field(name, opts={})
  name = Format.format_field(name)
  @fields[name] = FieldSpec.new(name, opts.merge(api: api))
end