Class: PhisherPhinder::LinkHost
- Inherits:
-
Object
- Object
- PhisherPhinder::LinkHost
- Defined in:
- lib/phisher_phinder/link_host.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#host_information ⇒ Object
Returns the value of attribute host_information.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(url:, body:, status_code:, headers:, host_information:) ⇒ LinkHost
constructor
A new instance of LinkHost.
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
#body ⇒ Object
Returns the value of attribute body.
5 6 7 |
# File 'lib/phisher_phinder/link_host.rb', line 5 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
5 6 7 |
# File 'lib/phisher_phinder/link_host.rb', line 5 def headers @headers end |
#host_information ⇒ Object
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_code ⇒ Object
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 |
#url ⇒ Object
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 |