class OpenBD::Contents
Attributes
source[R]
Public Class Methods
new(source)
click to toggle source
# File lib/open_bd/contents.rb, line 5 def initialize(source) @source = source end
Public Instance Methods
contents()
click to toggle source
# File lib/open_bd/contents.rb, line 9 def contents value = source.find { |x| x["TextType"] == "02" } if !value.nil? value["Text"] end end
contents_detail()
click to toggle source
# File lib/open_bd/contents.rb, line 16 def contents_detail value = source.find { |x| x["TextType"] == "03" } if !value.nil? value["Text"] end end
table_of_contents()
click to toggle source
# File lib/open_bd/contents.rb, line 23 def table_of_contents value = source.find { |x| x["TextType"] == "04" } if !value.nil? value["Text"] end end