Sha256: 65d92ffc0be3dd8ce6809ba5f0c237fa2bd67abdf5028b0f07991e04b9fbe93d
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 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 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'] 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ngrok-api-0.24.0 | lib/ngrokapi/models/reserved_addr.rb |
ngrok-api-0.23.0 | lib/ngrokapi/models/reserved_addr.rb |
ngrok-api-0.22.0 | lib/ngrokapi/models/reserved_addr.rb |