Class: PhisherPhinder::LinkHost

Inherits:
Object
  • Object
show all
Defined in:
lib/phisher_phinder/link_host.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url:, body:, status_code:, headers:, host_information:) ⇒ LinkHost

Returns a new instance of LinkHost.



7
8
9
10
11
12
13
# File 'lib/phisher_phinder/link_host.rb', line 7

def initialize(url:, body:, status_code:, headers:, host_information:)
  @url = url
  @body = body
  @status_code = status_code
  @headers = headers
  @host_information = host_information
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



5
6
7
# File 'lib/phisher_phinder/link_host.rb', line 5

def body
  @body
end

#headersObject

Returns the value of attribute headers.



5
6
7
# File 'lib/phisher_phinder/link_host.rb', line 5

def headers
  @headers
end

#host_informationObject

Returns the value of attribute host_information.



5
6
7
# File 'lib/phisher_phinder/link_host.rb', line 5

def host_information
  @host_information
end

#status_codeObject

Returns the value of attribute status_code.



5
6
7
# File 'lib/phisher_phinder/link_host.rb', line 5

def status_code
  @status_code
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/phisher_phinder/link_host.rb', line 5

def url
  @url
end

Instance Method Details

#==(other) ⇒ Object



15
16
17
18
# File 'lib/phisher_phinder/link_host.rb', line 15

def ==(other)
  url == other.url && body == other.body && status_code == other.status_code && headers == other.headers &&
    host_information == other.host_information
end