class BibSonomy::Post
Attributes
booktitle[R]
entrytype[R]
groups[R]
intra_hash[R]
journal[R]
title[R]
url[R]
user_name[R]
year[R]
Public Class Methods
new(post)
click to toggle source
# File lib/bibsonomy/post.rb, line 8 def initialize(post) publication = post["bibtex"] @user_name = post["user"]["name"] @intra_hash = publication["intrahash"] @title = publication["title"] @year = publication["year"] @entrytype = publication["entrytype"] @booktitle = publication["booktitle"] @journal = publication["journal"] @url = publication["url"] # extract group names @groups = [] post["group"].each do |group| @groups << group["name"] end end