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



3645
3646
3647
# File 'lib/xberg/native.rb', line 3645

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = true

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


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

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false