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



3890
3891
3892
# File 'lib/xberg/native.rb', line 3890

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3943
3944
3945
# File 'lib/xberg/native.rb', line 3943

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = true

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3939
3940
3941
# File 'lib/xberg/native.rb', line 3939

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false