Class: CiscoAclIntp::AceLogSpec
- Inherits:
-
AceOtherQualifierBase
- Object
- AccessControlContainer
- AceSpecBase
- AceOtherQualifierBase
- CiscoAclIntp::AceLogSpec
- Defined in:
- lib/cisco_acl_intp/acespec_other_qualifiers.rb
Overview
Log spec container
Constant Summary
Constants inherited from AccessControlContainer
CiscoAclIntp::AccessControlContainer::TERM_COLOR_TABLE
Instance Attribute Summary collapse
- #cookie ⇒ String
-
#input ⇒ Boolean
(also: #input?)
Specified log-input logging?.
Instance Method Summary collapse
- #==(other) ⇒ Boolean
-
#initialize(cookie = nil, input = false) ⇒ AceLogSpec
constructor
Constructor.
-
#to_s ⇒ String
Generate string for Cisco IOS access list.
Methods inherited from AccessControlContainer
#clean_acl_string, disable_color, #generate_tag_footer, #generate_tag_header, #generate_tagged_str, #method_missing
Constructor Details
#initialize(cookie = nil, input = false) ⇒ AceLogSpec
Constructor
60 61 62 63 |
# File 'lib/cisco_acl_intp/acespec_other_qualifiers.rb', line 60 def initialize( = nil, input = false) @input = input @cookie = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CiscoAclIntp::AccessControlContainer
Instance Attribute Details
#cookie ⇒ String
46 47 48 |
# File 'lib/cisco_acl_intp/acespec_other_qualifiers.rb', line 46 def @cookie end |
#input ⇒ Boolean Also known as: input?
Specified log-input logging?
50 51 52 |
# File 'lib/cisco_acl_intp/acespec_other_qualifiers.rb', line 50 def input @input end |
Instance Method Details
#==(other) ⇒ Boolean
77 78 79 80 81 |
# File 'lib/cisco_acl_intp/acespec_other_qualifiers.rb', line 77 def ==(other) other.instance_of?(AceLogSpec) && @input == other.input && @cookie == other. end |
#to_s ⇒ String
Generate string for Cisco IOS access list
67 68 69 70 71 72 73 |
# File 'lib/cisco_acl_intp/acespec_other_qualifiers.rb', line 67 def to_s format( '%s %s', @input ? 'log-input' : 'log', @cookie ? @cookie : '' ) end |