Module: Outpost::Aggregator::SimpleJson

Defined in:
lib/outpost/aggregator/simple_json.rb

Instance Method Summary collapse

Instance Method Details

#simple_jsonObject



4
5
6
7
8
9
# File 'lib/outpost/aggregator/simple_json.rb', line 4

def simple_json
  @simple_json ||= {
    "id"          => self.content.try(:obj_key),
    "position"    => self.position.to_i
  }
end