Sha256: e1e5b098e8c89994c6798d4b297558c98557525e46bd48f7c979c0439f56bbd1

Contents?: true

Size: 245 Bytes

Versions: 5

Compression:

Stored size: 245 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
outpost-aggregator-1.2.0 lib/outpost/aggregator/simple_json.rb
outpost-aggregator-1.1.3 lib/outpost/aggregator/simple_json.rb
outpost-aggregator-1.1.2 lib/outpost/aggregator/simple_json.rb
outpost-aggregator-1.1.1 lib/outpost/aggregator/simple_json.rb
outpost-aggregator-1.0.0 lib/outpost/aggregator/simple_json.rb