Class: CiscoAclIntp::AceTcpFlag

Inherits:
AceSpecBase show all
Defined in:
lib/cisco_acl_intp/acespec_tcp_flags.rb

Overview

TCP flag container

Constant Summary

Constants inherited from AccessControlContainer

CiscoAclIntp::AccessControlContainer::TERM_COLOR_TABLE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from AccessControlContainer

#clean_acl_string, disable_color, #generate_tag_footer, #generate_tag_header, #generate_tagged_str, #method_missing

Constructor Details

#initialize(flag) ⇒ AceTcpFlag

Constructor

Parameters:

  • flag (String)

    TCP flag name



16
17
18
# File 'lib/cisco_acl_intp/acespec_tcp_flags.rb', line 16

def initialize(flag)
  @flag = flag
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class CiscoAclIntp::AccessControlContainer

Instance Attribute Details

#flagString

Parameters:

  • value (String)

    TCP flag name

Returns:

  • (String)


11
12
13
# File 'lib/cisco_acl_intp/acespec_tcp_flags.rb', line 11

def flag
  @flag
end

Instance Method Details

#==(other) ⇒ Boolean

Parameters:

Returns:

  • (Boolean)


28
29
30
# File 'lib/cisco_acl_intp/acespec_tcp_flags.rb', line 28

def ==(other)
  @flag == other.flag
end

#to_sString

Generate string for Cisco IOS access list

Returns:

  • (String)


22
23
24
# File 'lib/cisco_acl_intp/acespec_tcp_flags.rb', line 22

def to_s
  @flag.to_s
end