Module: Schron::DSL

Defined in:
lib/schron/dsl.rb

Instance Method Summary collapse

Instance Method Details

#entity_class(entity_class = nil) ⇒ Object



8
9
10
# File 'lib/schron/dsl.rb', line 8

def entity_class(entity_class=nil)
  set_or_get(:entity_class, entity_class)
end

#indexed_field(field) ⇒ Object



12
13
14
# File 'lib/schron/dsl.rb', line 12

def indexed_field(field)
  (@indexed_fields ||= []) << field
end

#indexed_fieldsObject



16
17
18
# File 'lib/schron/dsl.rb', line 16

def indexed_fields
  @indexed_fields || []
end

#kind(kind = nil) ⇒ Object



4
5
6
# File 'lib/schron/dsl.rb', line 4

def kind(kind=nil)
  set_or_get(:kind, kind)
end