Class: Fabulator::Exhibit::Actions::Property

Inherits:
Action
  • Object
show all
Defined in:
lib/fabulator/exhibit/actions/property.rb

Instance Method Summary collapse

Instance Method Details

#run(context, autovivify = false) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fabulator/exhibit/actions/property.rb', line 10

def run(context, autovivify = false)
  @context.with(context) do |ctx|
    Fabulator::Exhibit::Lib.add_info(
      self.database(ctx).first.to_s, 
      :properties, {
        'id' => self.name(ctx).first.to_s,
        'valueType' => self.valueType(ctx).first.to_s
      }
    )
  end
end