Class: Nexpose::IPRange

Inherits:
Object
  • Object
show all
Defined in:
plugins/nexpose.rb

Instance Method Summary collapse

Instance Method Details

#to_jsonObject


697
698
699
700
701
702
703
# File 'plugins/nexpose.rb', line 697

def to_json
  if @to.present?
    "#{@from} - #{@to}".to_json
  else
    @from.to_json
  end
end