-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module ExpertSenderApi | ||
module DataTable | ||
def add_row_to_xml(row, xml) | ||
xml.Row do | ||
insert_row_to_xml(row, xml) | ||
end | ||
end | ||
|
||
def insert_row_to_xml(row, xml) | ||
xml.Columns do | ||
row.each_pair { |col_name, col_value| insert_col_to_xml(col_name, col_value, xml) } | ||
end | ||
end | ||
|
||
def insert_col_to_xml(col_name, col_value, xml) | ||
xml.Column do | ||
xml.Name col_name | ||
xml.Value col_value | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters