Class: Xberg::FormatMetadataAudio

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



3647
3648
3649
# File 'lib/xberg/native.rb', line 3647

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3700
3701
3702
# File 'lib/xberg/native.rb', line 3700

def self.from_hash(hash)
  new(value: hash[:_0] || hash["_0"])
end

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


3666
# File 'lib/xberg/native.rb', line 3666

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


3694
# File 'lib/xberg/native.rb', line 3694

def audio? = true

#bibtex?Boolean

Returns:

  • (Boolean)


3680
# File 'lib/xberg/native.rb', line 3680

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


3682
# File 'lib/xberg/native.rb', line 3682

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3696
3697
3698
# File 'lib/xberg/native.rb', line 3696

def code? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#csv?Boolean

Returns:

  • (Boolean)


3678
# File 'lib/xberg/native.rb', line 3678

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


3686
# File 'lib/xberg/native.rb', line 3686

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


3658
# File 'lib/xberg/native.rb', line 3658

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


3662
# File 'lib/xberg/native.rb', line 3662

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


3690
# File 'lib/xberg/native.rb', line 3690

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


3660
# File 'lib/xberg/native.rb', line 3660

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


3684
# File 'lib/xberg/native.rb', line 3684

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


3674
# File 'lib/xberg/native.rb', line 3674

def html? = false

#image?Boolean

Returns:

  • (Boolean)


3668
# File 'lib/xberg/native.rb', line 3668

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


3688
# File 'lib/xberg/native.rb', line 3688

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


3676
# File 'lib/xberg/native.rb', line 3676

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


3656
# File 'lib/xberg/native.rb', line 3656

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


3664
# File 'lib/xberg/native.rb', line 3664

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


3692
# File 'lib/xberg/native.rb', line 3692

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


3672
# File 'lib/xberg/native.rb', line 3672

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


3670
# File 'lib/xberg/native.rb', line 3670

def xml? = false