Class: SuperFormatter::Tcat::Row
- Inherits:
-
Row
- Object
- Struct
- Row
- SuperFormatter::Tcat::Row
show all
- Defined in:
- lib/super_formatter/tcat/row.rb
Instance Attribute Summary
Attributes inherited from Row
#data, #indexes
Instance Method Summary
collapse
Methods inherited from Row
#complete?, #method_missing
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class SuperFormatter::Row
Instance Method Details
#mobile ⇒ Object
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/super_formatter/tcat/row.rb', line 10
def mobile
@mobile ||= begin
text = (find(:mobile) || "").gsub("'", "")
if text[0] == '9' && text.length == 9
"0#{text}"
else
text
end
end
end
|
#tracking_code ⇒ Object
6
7
8
|
# File 'lib/super_formatter/tcat/row.rb', line 6
def tracking_code
(find(:tracking_code) || "").gsub("'", '')
end
|