class NgrokAPI::Models::ReservedAddr
Attributes
addr[R]
attrs[R]
client[R]
created_at[R]
description[R]
endpoint_configuration[R]
id[R]
metadata[R]
region[R]
uri[R]
Public Class Methods
new(client: nil, attrs: {})
click to toggle source
# File lib/ngrokapi/models/reserved_addr.rb, line 17 def initialize(client: nil, attrs: {}) @client = client @attrs = attrs @id = @attrs['id'] @uri = @attrs['uri'] @created_at = @attrs['created_at'] @description = @attrs['description'] @metadata = @attrs['metadata'] @addr = @attrs['addr'] @region = @attrs['region'] @endpoint_configuration = @attrs['endpoint_configuration'] end
Public Instance Methods
==(other)
click to toggle source
# File lib/ngrokapi/models/reserved_addr.rb, line 30 def ==(other) @attrs == other.attrs end
delete()
click to toggle source
Delete a reserved address.
ngrok.com/docs/api#api-reserved-addrs-delete
# File lib/ngrokapi/models/reserved_addr.rb, line 46 def delete @client.delete( id: @id ) end
to_h()
click to toggle source
# File lib/ngrokapi/models/reserved_addr.rb, line 38 def to_h @attrs.to_h end
to_s()
click to toggle source
# File lib/ngrokapi/models/reserved_addr.rb, line 34 def to_s @attrs.to_s end