Skip to content

Commit

Permalink
Stylish like @limhoff-r7
Browse files Browse the repository at this point in the history
  • Loading branch information
Meatballs1 committed Mar 17, 2015
1 parent 0debbbb commit fcc21ff
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/metasploit/framework/login_scanner/snmp.rb
Expand Up @@ -17,21 +17,22 @@ class SNMP
PRIVATE_TYPES = [ :password ]
REALM_KEY = nil

# @!attribute retries
# @return [Fixnum] The number of retries
# The number of retries
# @return [Fixnum]
attr_accessor :retries

# The SNMAP version to scan
#
# @return [String]
attr_accessor :version

validates :retries,
presence: true,
numericality: {
only_integer: true,
only_integer: true,
greater_than_or_equal_to: 0
}

# @!attribute version
# @return [String] The SNMP version to scan
attr_accessor :version

validates :version,
presence: true,
inclusion: { in: ['1', '2c', 'all'] }
Expand Down

0 comments on commit fcc21ff

Please sign in to comment.