Skip to content

Commit

Permalink
Merge pull request #9 from dquispe/master
Browse files Browse the repository at this point in the history
Add mentions to documents
  • Loading branch information
mileszim authored Jul 26, 2017
2 parents 7e35d4a + f78d7de commit abf2fe4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/document_cloud/document.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module DocumentCloud
class Document
attr_reader :id, :title, :access, :pages, :description, :source,
attr_reader :id, :title, :access, :pages, :description, :source, :mentions,
:canonical_url, :language, :display_language, :created_at, :updated_at

def initialize(attrs={})
Expand All @@ -16,6 +16,7 @@ def initialize(attrs={})
@created_at = DateTime.parse(attrs[:created_at])
@updated_at = DateTime.parse(attrs[:updated_at])
@resources = attrs[:resources]
@mentions = attrs[:mentions]
end

def pdf
Expand Down

0 comments on commit abf2fe4

Please sign in to comment.