Class: NgrokAPI::Models::ReservedDomain
- Inherits:
-
Object
- Object
- NgrokAPI::Models::ReservedDomain
- Defined in:
- lib/ngrokapi/models/reserved_domain.rb
Instance Attribute Summary collapse
-
#acme_challenge_cname_target ⇒ Object
readonly
Returns the value of attribute acme_challenge_cname_target.
-
#certificate ⇒ Object
readonly
Returns the value of attribute certificate.
-
#certificate_management_policy ⇒ Object
readonly
Returns the value of attribute certificate_management_policy.
-
#certificate_management_status ⇒ Object
readonly
Returns the value of attribute certificate_management_status.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#cname_target ⇒ Object
readonly
Returns the value of attribute cname_target.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#http_endpoint_configuration ⇒ Object
readonly
Returns the value of attribute http_endpoint_configuration.
-
#https_endpoint_configuration ⇒ Object
readonly
Returns the value of attribute https_endpoint_configuration.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#delete ⇒ Object
Delete a reserved domain.
-
#initialize(client:, result:) ⇒ ReservedDomain
constructor
A new instance of ReservedDomain.
- #to_s ⇒ Object
Constructor Details
#initialize(client:, result:) ⇒ ReservedDomain
Returns a new instance of ReservedDomain.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 23 def initialize(client:, result:) @client = client @result = result @id = @result['id'] @uri = @result['uri'] @created_at = @result['created_at'] @description = @result['description'] @metadata = @result['metadata'] @domain = @result['domain'] @region = @result['region'] @cname_target = @result['cname_target'] @http_endpoint_configuration = @result['http_endpoint_configuration'] @https_endpoint_configuration = @result['https_endpoint_configuration'] @certificate = @result['certificate'] @certificate_management_policy = @result['certificate_management_policy'] @certificate_management_status = @result['certificate_management_status'] @acme_challenge_cname_target = @result['acme_challenge_cname_target'] end |
Instance Attribute Details
#acme_challenge_cname_target ⇒ Object (readonly)
Returns the value of attribute acme_challenge_cname_target.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def acme_challenge_cname_target @acme_challenge_cname_target end |
#certificate ⇒ Object (readonly)
Returns the value of attribute certificate.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def certificate @certificate end |
#certificate_management_policy ⇒ Object (readonly)
Returns the value of attribute certificate_management_policy.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def certificate_management_policy @certificate_management_policy end |
#certificate_management_status ⇒ Object (readonly)
Returns the value of attribute certificate_management_status.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def certificate_management_status @certificate_management_status end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def client @client end |
#cname_target ⇒ Object (readonly)
Returns the value of attribute cname_target.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def cname_target @cname_target end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def created_at @created_at end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def description @description end |
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def domain @domain end |
#http_endpoint_configuration ⇒ Object (readonly)
Returns the value of attribute http_endpoint_configuration.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def http_endpoint_configuration @http_endpoint_configuration end |
#https_endpoint_configuration ⇒ Object (readonly)
Returns the value of attribute https_endpoint_configuration.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def https_endpoint_configuration @https_endpoint_configuration end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def id @id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def @metadata end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def region @region end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def result @result end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
6 7 8 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6 def uri @uri end |
Instance Method Details
#==(other) ⇒ Object
42 43 44 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 42 def ==(other) @result == other.result end |
#delete ⇒ Object
Delete a reserved domain.
54 55 56 57 58 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 54 def delete @client.delete( id: @id ) end |
#to_s ⇒ Object
46 47 48 |
# File 'lib/ngrokapi/models/reserved_domain.rb', line 46 def to_s @result.to_s end |