Skip to content

Commit 0e5ec8e

Browse files
authored
feat(RuleReference): RHICOMPL-3434 implement the to_h method (#42)
* feat(RuleReference): RHICOMPL-3434 implement the to_h method * Bump version to 1.3.1
1 parent ea35f53 commit 0e5ec8e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/openscap_parser/rule_reference.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,12 @@ def href
1010
def label
1111
@label ||= @parsed_xml && @parsed_xml.text
1212
end
13+
14+
def to_h
15+
{
16+
href: href,
17+
label: label
18+
}
19+
end
1320
end
1421
end

lib/openscap_parser/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module OpenscapParser
2-
VERSION = "1.3.0"
2+
VERSION = "1.3.1"
33
end

0 commit comments

Comments
 (0)