Class: OverdriveMetadata::EBook
- Defined in:
- lib/overdrive_metadata.rb
Constant Summary
Constants inherited from ERecord
OverdriveMetadata::ERecord::DATE_ERR, OverdriveMetadata::ERecord::FIXF_ERR, OverdriveMetadata::ERecord::GMD, OverdriveMetadata::ERecord::TITL_ERR
Instance Attribute Summary collapse
-
#isbn ⇒ Object
readonly
Returns the value of attribute isbn.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Attributes inherited from ERecord
Instance Method Summary collapse
-
#initialize ⇒ EBook
constructor
A new instance of EBook.
- #make_006 ⇒ Object
- #make_007 ⇒ Object
- #make_physical(*args) ⇒ Object
Methods inherited from ERecord
#make_control_field, #make_data_field, #make_fixed_field, #make_publication, #make_title, #non_filing_characters
Constructor Details
#initialize ⇒ EBook
Returns a new instance of EBook.
282 283 284 285 286 287 288 |
# File 'lib/overdrive_metadata.rb', line 282 def initialize super @ldr[6] = 'a' @fixed_field = ' s xxu|||| s 0||| eng d' @isbn = '(electronic bk. : OverDrive Electronic Book)' @subject = 'Downloadable ebooks.' end |
Instance Attribute Details
#isbn ⇒ Object (readonly)
Returns the value of attribute isbn.
280 281 282 |
# File 'lib/overdrive_metadata.rb', line 280 def isbn @isbn end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
280 281 282 |
# File 'lib/overdrive_metadata.rb', line 280 def subject @subject end |
Instance Method Details
#make_006 ⇒ Object
290 291 292 |
# File 'lib/overdrive_metadata.rb', line 290 def make_006 make_control_field('006', 'm d ') end |
#make_007 ⇒ Object
294 295 296 |
# File 'lib/overdrive_metadata.rb', line 294 def make_007 make_control_field('007', 'cr nnu---|||||') end |
#make_physical(*args) ⇒ Object
298 299 300 |
# File 'lib/overdrive_metadata.rb', line 298 def make_physical(*args) make_data_field('300', ' ', ' ', {'a' => "1 online resource."}) end |