Class: NgrokAPI::Models::AbuseReportHostname

Inherits:
Object
  • Object
show all
Defined in:
lib/ngrokapi/models/abuse_report_hostname.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 6

def client
  @client
end

#hostnameObject (readonly)

Returns the value of attribute hostname.



6
7
8
# File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 6

def hostname
  @hostname
end

#resultObject (readonly)

Returns the value of attribute result.



6
7
8
# File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 6

def result
  @result
end

#statusObject (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_sObject



22
23
24
# File 'lib/ngrokapi/models/abuse_report_hostname.rb', line 22

def to_s
  @result.to_s
end