class SecEdgar::OfficerTitle
Attributes
raw_title[R]
Public Class Methods
new(raw)
click to toggle source
# File lib/sec_edgar/officer_title.rb, line 5 def initialize(raw) @raw_title = raw end
Public Instance Methods
important?()
click to toggle source
# File lib/sec_edgar/officer_title.rb, line 13 def important? ceo? || president? || cfo? || finance? end
parsed()
click to toggle source
# File lib/sec_edgar/officer_title.rb, line 9 def parsed @parsed ||= raw_title.gsub(/[^a-z]/i, '').upcase end
to_s()
click to toggle source
# File lib/sec_edgar/officer_title.rb, line 17 def to_s @raw_title.upcase end
Private Instance Methods
ceo?()
click to toggle source
# File lib/sec_edgar/officer_title.rb, line 27 def ceo? parsed.include?("CEO") || parsed.include?("EXECUTIVEOFFICER") end
cfo?()
click to toggle source
# File lib/sec_edgar/officer_title.rb, line 31 def cfo? parsed.include?("CFO") || parsed.include?("FINANCIALOFFICER") end
finance?()
click to toggle source
# File lib/sec_edgar/officer_title.rb, line 35 def finance? parsed.include?("FINANCE") end
president?()
click to toggle source
# File lib/sec_edgar/officer_title.rb, line 23 def president? parsed.include?("PRES") end