Sha256: 060d3f93d8a47011ab12276a654a096a7d96c1c8baf79d37e8ed1a561abbf8a2

Contents?: true

Size: 457 Bytes

Versions: 2

Compression:

Stored size: 457 Bytes

Contents

json.id annotation.id

# Version
json.annotator_schema_version annotation.version

# Meta
json.uri annotation.uri

# Content
json.text annotation.text
json.quote annotation.quote
json.ranges do
  json.array! annotation.ranges do |range|
    json.start range.start
    json.end range.end
    json.startOffset range.start_offset
    json.endOffset range.end_offset
  end
end

# Timestamps
json.created annotation.created_at
json.updated annotation.updated_at

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
annotator_store-1.0.0 app/views/annotator_store/annotations/_annotation.json.jbuilder
annotator_store-1.0.0.pre app/views/annotator_store/annotations/_annotation.json.jbuilder