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)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



2433
2434
2435
# File 'lib/xberg/native.rb', line 2433

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2485
2486
2487
2488
# File 'lib/xberg/native.rb', line 2485

def self.from_hash(hash)
  payload = hash.reject { |key, _| key.to_s == "format_type" }.transform_keys(&:to_sym)
  new(value: AudioMetadata.new(payload))
end

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = true

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2481
2482
2483
# File 'lib/xberg/native.rb', line 2481

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false