Class: Avmtrf1::Forponto::Parsers::Espelho::SummaryNode
- Inherits:
-
SubNode
- Object
- SubNode
- Avmtrf1::Forponto::Parsers::Espelho::SummaryNode
show all
- Includes:
- MethodsAsFields, EacRubyUtils::SimpleCache
- Defined in:
- lib/avmtrf1/forponto/parsers/espelho/summary_node.rb
Constant Summary
collapse
- FIELDS =
%w[code description time minutes].freeze
Instance Attribute Summary
Attributes inherited from SubNode
#node
Instance Method Summary
collapse
#data, #methods_as_fields
Methods inherited from SubNode
#initialize
Instance Method Details
#minutes ⇒ Object
24
25
26
27
28
29
30
31
|
# File 'lib/avmtrf1/forponto/parsers/espelho/summary_node.rb', line 24
def minutes
return nil if time.blank?
m = /\A(\d+):(\d+)\z/.match(time)
raise "\"#{time}\" does not match time pattern" unless m
m[1].to_i * 60 + m[2].to_i
end
|
#time ⇒ Object
20
21
22
|
# File 'lib/avmtrf1/forponto/parsers/espelho/summary_node.rb', line 20
def time
column_text('20%')
end
|