Class: Xberg::FormatMetadataAudio
- Inherits:
-
Data
- Object
- Data
- Xberg::FormatMetadataAudio
- Extended by:
- T::Sig
- Includes:
- FormatMetadata
- Defined in:
- lib/xberg/native.rb
Overview
Metadata extracted from an audio or video file.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
- #archive? ⇒ Boolean
- #audio? ⇒ Boolean
- #bibtex? ⇒ Boolean
- #citation? ⇒ Boolean
- #code? ⇒ Boolean
- #csv? ⇒ Boolean
- #dbf? ⇒ Boolean
- #docx? ⇒ Boolean
- #email? ⇒ Boolean
- #epub? ⇒ Boolean
- #excel? ⇒ Boolean
- #fiction_book? ⇒ Boolean
- #html? ⇒ Boolean
- #image? ⇒ Boolean
- #jats? ⇒ Boolean
- #ocr? ⇒ Boolean
- #pdf? ⇒ Boolean
- #pptx? ⇒ Boolean
- #pst? ⇒ Boolean
- #text? ⇒ Boolean
- #xml? ⇒ Boolean
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value
2433 2434 2435 |
# File 'lib/xberg/native.rb', line 2433 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
2485 2486 2487 2488 |
# File 'lib/xberg/native.rb', line 2485 def self.from_hash(hash) payload = hash.reject { |key, _| key.to_s == "format_type" }.transform_keys(&:to_sym) new(value: AudioMetadata.new(payload)) end |
Instance Method Details
#archive? ⇒ Boolean
2451 |
# File 'lib/xberg/native.rb', line 2451 def archive? = false |
#audio? ⇒ Boolean
2479 |
# File 'lib/xberg/native.rb', line 2479 def audio? = true |
#bibtex? ⇒ Boolean
2465 |
# File 'lib/xberg/native.rb', line 2465 def bibtex? = false |
#citation? ⇒ Boolean
2467 |
# File 'lib/xberg/native.rb', line 2467 def citation? = false |
#code? ⇒ Boolean
2481 2482 2483 |
# File 'lib/xberg/native.rb', line 2481 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
2463 |
# File 'lib/xberg/native.rb', line 2463 def csv? = false |
#dbf? ⇒ Boolean
2471 |
# File 'lib/xberg/native.rb', line 2471 def dbf? = false |
#docx? ⇒ Boolean
2443 |
# File 'lib/xberg/native.rb', line 2443 def docx? = false |
#email? ⇒ Boolean
2447 |
# File 'lib/xberg/native.rb', line 2447 def email? = false |
#epub? ⇒ Boolean
2475 |
# File 'lib/xberg/native.rb', line 2475 def epub? = false |
#excel? ⇒ Boolean
2445 |
# File 'lib/xberg/native.rb', line 2445 def excel? = false |
#fiction_book? ⇒ Boolean
2469 |
# File 'lib/xberg/native.rb', line 2469 def fiction_book? = false |
#html? ⇒ Boolean
2459 |
# File 'lib/xberg/native.rb', line 2459 def html? = false |
#image? ⇒ Boolean
2453 |
# File 'lib/xberg/native.rb', line 2453 def image? = false |
#jats? ⇒ Boolean
2473 |
# File 'lib/xberg/native.rb', line 2473 def jats? = false |
#ocr? ⇒ Boolean
2461 |
# File 'lib/xberg/native.rb', line 2461 def ocr? = false |
#pdf? ⇒ Boolean
2441 |
# File 'lib/xberg/native.rb', line 2441 def pdf? = false |
#pptx? ⇒ Boolean
2449 |
# File 'lib/xberg/native.rb', line 2449 def pptx? = false |
#pst? ⇒ Boolean
2477 |
# File 'lib/xberg/native.rb', line 2477 def pst? = false |
#text? ⇒ Boolean
2457 |
# File 'lib/xberg/native.rb', line 2457 def text? = false |
#xml? ⇒ Boolean
2455 |
# File 'lib/xberg/native.rb', line 2455 def xml? = false |