Class: Xberg::FormatMetadataBibtex
- Inherits:
-
Data
- Object
- Data
- Xberg::FormatMetadataBibtex
- Extended by:
- T::Sig
- Includes:
- FormatMetadata
- Defined in:
- lib/xberg/native.rb
Overview
Metadata extracted from a BibTeX bibliography file.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
- #archive? ⇒ Boolean
- #audio? ⇒ Boolean
- #bibtex? ⇒ Boolean
- #citation? ⇒ Boolean
- #code? ⇒ Boolean
- #csv? ⇒ Boolean
- #dbf? ⇒ Boolean
- #docx? ⇒ Boolean
- #email? ⇒ Boolean
- #epub? ⇒ Boolean
- #excel? ⇒ Boolean
- #fiction_book? ⇒ Boolean
- #html? ⇒ Boolean
- #image? ⇒ Boolean
- #jats? ⇒ Boolean
- #ocr? ⇒ Boolean
- #pdf? ⇒ Boolean
- #pptx? ⇒ Boolean
- #pst? ⇒ Boolean
- #text? ⇒ Boolean
- #xml? ⇒ Boolean
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value
2027 2028 2029 |
# File 'lib/xberg/native.rb', line 2027 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
2079 2080 2081 2082 |
# File 'lib/xberg/native.rb', line 2079 def self.from_hash(hash) payload = hash.reject { |key, _| key.to_s == "format_type" }.transform_keys(&:to_sym) new(value: BibtexMetadata.new(payload)) end |
Instance Method Details
#archive? ⇒ Boolean
2045 |
# File 'lib/xberg/native.rb', line 2045 def archive? = false |
#audio? ⇒ Boolean
2073 |
# File 'lib/xberg/native.rb', line 2073 def audio? = false |
#bibtex? ⇒ Boolean
2059 |
# File 'lib/xberg/native.rb', line 2059 def bibtex? = true |
#citation? ⇒ Boolean
2061 |
# File 'lib/xberg/native.rb', line 2061 def citation? = false |
#code? ⇒ Boolean
2075 2076 2077 |
# File 'lib/xberg/native.rb', line 2075 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
2057 |
# File 'lib/xberg/native.rb', line 2057 def csv? = false |
#dbf? ⇒ Boolean
2065 |
# File 'lib/xberg/native.rb', line 2065 def dbf? = false |
#docx? ⇒ Boolean
2037 |
# File 'lib/xberg/native.rb', line 2037 def docx? = false |
#email? ⇒ Boolean
2041 |
# File 'lib/xberg/native.rb', line 2041 def email? = false |
#epub? ⇒ Boolean
2069 |
# File 'lib/xberg/native.rb', line 2069 def epub? = false |
#excel? ⇒ Boolean
2039 |
# File 'lib/xberg/native.rb', line 2039 def excel? = false |
#fiction_book? ⇒ Boolean
2063 |
# File 'lib/xberg/native.rb', line 2063 def fiction_book? = false |
#html? ⇒ Boolean
2053 |
# File 'lib/xberg/native.rb', line 2053 def html? = false |
#image? ⇒ Boolean
2047 |
# File 'lib/xberg/native.rb', line 2047 def image? = false |
#jats? ⇒ Boolean
2067 |
# File 'lib/xberg/native.rb', line 2067 def jats? = false |
#ocr? ⇒ Boolean
2055 |
# File 'lib/xberg/native.rb', line 2055 def ocr? = false |
#pdf? ⇒ Boolean
2035 |
# File 'lib/xberg/native.rb', line 2035 def pdf? = false |
#pptx? ⇒ Boolean
2043 |
# File 'lib/xberg/native.rb', line 2043 def pptx? = false |
#pst? ⇒ Boolean
2071 |
# File 'lib/xberg/native.rb', line 2071 def pst? = false |
#text? ⇒ Boolean
2051 |
# File 'lib/xberg/native.rb', line 2051 def text? = false |
#xml? ⇒ Boolean
2049 |
# File 'lib/xberg/native.rb', line 2049 def xml? = false |