Sha256: a927a4a2d970d757140ff4bfafe878e6cd5db062af0dea0126c2896d7530ec43
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
# frozen_string_literal: true # Code generated for API Clients. DO NOT EDIT. require 'uri' module NgrokAPI module Models class ReservedAddr attr_reader :client, :attrs, :id, :uri, :created_at, :description, :metadata, :addr, :region, :endpoint_configuration def initialize(client: nil, attrs: {}) @client = client @attrs = attrs @id = @attrs['id'] unless @attrs['uri'].nil? @uri = URI(@attrs['uri']) end @created_at = @attrs['created_at'] @description = @attrs['description'] @metadata = @attrs['metadata'] @addr = @attrs['addr'] @region = @attrs['region'] @endpoint_configuration = @attrs['endpoint_configuration'] end def ==(other) @attrs == other.attrs end def to_s @attrs.to_s end def to_h @attrs.to_h end ## # Delete a reserved address. # # https://ngrok.com/docs/api#api-reserved-addrs-delete def delete @client.delete( id: @id ) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ngrok-api-0.21.0 | lib/ngrokapi/models/reserved_addr.rb |