Sha256: 4a2ff070e1b8e0cf625bee17737593ac35fb7d3ca76e4d752ca502b09b13e296
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
module Genius class Annotation < Resource attr_reader :verified_by, :share_url, :body, :votes_total, :comment_count, :state, :authors, :current_user_metadata, :id, :url def parse_resource! @verified_by = Account.from_hash(resource["verified_by"]) @share_url = resource["share_url"] @body = formatted_attribute("body") @votes_total = resource["votes_total"] @comment_count = resource["comment_count"] @authors = resource["authors"] @state = resource["state"] @current_user_metadata = resource["current_user_metadata"] @id = resource["id"] @url = resource["url"] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
genius-0.1.0 | lib/genius/annotation.rb |