Class: OpenURL::Book
- Inherits:
-
ScholarlyCommon
- Object
- ContextObjectEntity
- ScholarlyCommon
- OpenURL::Book
- Defined in:
- lib/openurl/metadata_formats/book.rb
Instance Attribute Summary collapse
-
#authors ⇒ Object
readonly
Returns the value of attribute authors.
Attributes inherited from ContextObjectEntity
#abbr, #format, #identifiers, #label, #metadata, #private_data, #reference
Instance Method Summary collapse
-
#initialize ⇒ Book
constructor
A new instance of Book.
Methods inherited from ScholarlyCommon
#add_author, #genre, #genre=, #import_xml_metadata, #method_missing, #remove_author, #respond_to?, #serialize_metadata, #set_metadata
Methods inherited from ContextObjectEntity
#add_identifier, #delete_identifier, #empty?, #get_metadata, #identifier, #import_xml_metadata, #kev, new_from_format, normalize_id, #serialize_metadata, #set_format, #set_metadata, #set_private_data, #set_reference, #to_hash, #xml, #xml_for_ref_entity
Constructor Details
#initialize ⇒ Book
Returns a new instance of Book.
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/openurl/metadata_formats/book.rb', line 15 def initialize super() @format = 'book' @metadata_keys = ['btitle','atitle','title','place','pub','date','edition', 'tpages','series', 'spage','epage', 'pages','issn','isbn','bici'] @valid_genres = ["book","bookitem","conference","proceeding","report", "document","unknown" ] @xml_ns = "info:ofi/fmt:xml:xsd:book" @kev_ns = "info:ofi/fmt:kev:mtx:book" end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class OpenURL::ScholarlyCommon
Instance Attribute Details
#authors ⇒ Object (readonly)
Returns the value of attribute authors.
14 15 16 |
# File 'lib/openurl/metadata_formats/book.rb', line 14 def @authors end |