Class: Gared::Publication

Inherits:
Object
  • Object
show all
Defined in:
lib/gared/publication.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ctx) ⇒ Publication

Returns a new instance of Publication.



6
7
8
9
# File 'lib/gared/publication.rb', line 6

def initialize(ctx)
  @holdings = []
  self.context = ctx
end

Instance Attribute Details

#additional_urlsObject

Returns the value of attribute additional_urls.



4
5
6
# File 'lib/gared/publication.rb', line 4

def additional_urls
  @additional_urls
end

#author_lineObject

Returns the value of attribute author_line.



4
5
6
# File 'lib/gared/publication.rb', line 4

def author_line
  @author_line
end

#contextObject

Returns the value of attribute context.



4
5
6
# File 'lib/gared/publication.rb', line 4

def context
  @context
end

#holdingsObject

Returns the value of attribute holdings.



4
5
6
# File 'lib/gared/publication.rb', line 4

def holdings
  @holdings
end

#languageObject

Returns the value of attribute language.



4
5
6
# File 'lib/gared/publication.rb', line 4

def language
  @language
end

#notesObject

Returns the value of attribute notes.



4
5
6
# File 'lib/gared/publication.rb', line 4

def notes
  @notes
end

#pub_yearObject

Returns the value of attribute pub_year.



4
5
6
# File 'lib/gared/publication.rb', line 4

def pub_year
  @pub_year
end

#publisher_lineObject

Returns the value of attribute publisher_line.



4
5
6
# File 'lib/gared/publication.rb', line 4

def publisher_line
  @publisher_line
end

#scannedObject

Returns the value of attribute scanned.



4
5
6
# File 'lib/gared/publication.rb', line 4

def scanned
  @scanned
end

#source_idObject

Returns the value of attribute source_id.



4
5
6
# File 'lib/gared/publication.rb', line 4

def source_id
  @source_id
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/gared/publication.rb', line 4

def title
  @title
end

Instance Method Details

#add_holding(holding) ⇒ Object



11
12
13
# File 'lib/gared/publication.rb', line 11

def add_holding(holding)
  @holdings << holding
end