Class: NgrokAPI::Models::AbuseReportHostname
- Inherits:
-
Object
- Object
- NgrokAPI::Models::AbuseReportHostname
- Defined in:
- lib/ngrokapi/models/abuse_report_hostname.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(client:, result:) ⇒ AbuseReportHostname
constructor
A new instance of AbuseReportHostname.
- #to_s ⇒ Object
Constructor Details
#initialize(client:, result:) ⇒ AbuseReportHostname
Returns a new instance of AbuseReportHostname.
11 12 13 14 15 16 |
# File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 11 def initialize(client:, result:) @client = client @result = result @hostname = @result['hostname'] @status = @result['status'] end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 6 def client @client end |
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
6 7 8 |
# File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 6 def hostname @hostname end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 6 def result @result end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 6 def status @status end |
Instance Method Details
#==(other) ⇒ Object
18 19 20 |
# File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 18 def ==(other) @result == other.result end |
#to_s ⇒ Object
22 23 24 |
# File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 22 def to_s @result.to_s end |