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



3653
3654
3655
# File 'lib/xberg/native.rb', line 3653

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3706
3707
3708
# File 'lib/xberg/native.rb', line 3706

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = true

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3702
3703
3704
# File 'lib/xberg/native.rb', line 3702

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false