Class: NgrokAPI::Models::ReservedDomainCertJob

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:, result:) ⇒ ReservedDomainCertJob

Returns a new instance of ReservedDomainCertJob.



13
14
15
16
17
18
19
20
# File 'lib/ngrokapi/models/reserved_domain_cert_job.rb', line 13

def initialize(client:, result:)
  @client = client
  @result = result
  @error_code = @result['error_code']
  @msg = @result['msg']
  @started_at = @result['started_at']
  @retries_at = @result['retries_at']
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



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

def client
  @client
end

#error_codeObject (readonly)

Returns the value of attribute error_code.



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

def error_code
  @error_code
end

#msgObject (readonly)

Returns the value of attribute msg.



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

def msg
  @msg
end

#resultObject (readonly)

Returns the value of attribute result.



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

def result
  @result
end

#retries_atObject (readonly)

Returns the value of attribute retries_at.



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

def retries_at
  @retries_at
end

#started_atObject (readonly)

Returns the value of attribute started_at.



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

def started_at
  @started_at
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  @result == other.result
end

#to_sObject



26
27
28
# File 'lib/ngrokapi/models/reserved_domain_cert_job.rb', line 26

def to_s
  @result.to_s
end