Class: Saml::Kit::Cli::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/saml/kit/cli/report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#documentObject (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



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.full_messages, shell)
end