# frozen_string_literal: true module TwilioBase module Fake class ApiKey Key = Struct.new(:friendly_name) do def sid @sid ||= FactoryBot.generate(:api_key_sid) end def secret @secret ||= FactoryBot.generate(:api_key_secret) end end cattr_accessor :keys self.keys = [] def create(friendly_name:) key = Key.new(friendly_name) self.class.keys << key key end end end end