Sha256: 1f7a17a5e812b988fe4e66737005a4395b76e932050e61aca8ea1f217523d60f
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true # Code generated for API Clients. DO NOT EDIT. require 'uri' module NgrokAPI module Models class IPRestriction attr_reader :client, :attrs, :id, :uri, :created_at, :description, :metadata, :enforced, :type, :ip_policies 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'] @enforced = @attrs['enforced'] @type = @attrs['type'] @ip_policies = @attrs['ip_policies'] end def ==(other) @attrs == other.attrs end def to_s @attrs.to_s end def to_h @attrs.to_h end ## # Delete an IP restriction # # https://ngrok.com/docs/api#api-ip-restrictions-delete def delete @client.delete( id: @id ) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems