class Phishtank::Parser

Public Class Methods

new(result) click to toggle source
# File lib/phishtank/parser.rb, line 3
def initialize(result)
  @result = result
end

Public Instance Methods

in_database?() click to toggle source
# File lib/phishtank/parser.rb, line 21
def in_database?
  @result[:results][:in_database]
end
is_valid_phishing?() click to toggle source

Parse Methods

# File lib/phishtank/parser.rb, line 9
def is_valid_phishing?
  @result[:results][:valid]
end
is_verified?() click to toggle source
# File lib/phishtank/parser.rb, line 13
def is_verified?
  @result[:results][:verified]
end
phish_id() click to toggle source
# File lib/phishtank/parser.rb, line 33
def phish_id
  @result[:results][:phish_id]
end
phishing_site_url() click to toggle source
# File lib/phishtank/parser.rb, line 25
def phishing_site_url
  @result[:results][:url]
end
phishtank_details_url() click to toggle source
# File lib/phishtank/parser.rb, line 29
def phishtank_details_url
  @result[:results][:phish_detail_page]
end
verified_at() click to toggle source
# File lib/phishtank/parser.rb, line 17
def verified_at
  @result[:results][:verified_at]
end