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



3965
3966
3967
# File 'lib/xberg/native.rb', line 3965

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



4018
4019
4020
# File 'lib/xberg/native.rb', line 4018

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = true

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


4014
4015
4016
# File 'lib/xberg/native.rb', line 4014

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false