Class: Saml::Kit::Cli::Report
- Inherits:
-
Object
- Object
- Saml::Kit::Cli::Report
- Defined in:
- lib/saml/kit/cli/report.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
Instance Method Summary collapse
-
#initialize(document) ⇒ Report
constructor
A new instance of Report.
- #print(shell) ⇒ Object
Constructor Details
#initialize(document) ⇒ Report
Returns a new instance of Report.
9 10 11 |
# File 'lib/saml/kit/cli/report.rb', line 9 def initialize(document) @document = document end |
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
7 8 9 |
# File 'lib/saml/kit/cli/report.rb', line 7 def document @document end |
Instance Method Details
#print(shell) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/saml/kit/cli/report.rb', line 13 def print(shell) shell.say_status status, "Decoded #{document.send(:name)}" shell.print_table document.build_table print_signature(document.signature, shell) print_xml(shell) print_errors(document.errors., shell) end |