Sha256: 7cb308e458ba388c716fc92828e02efd6e102138d7e99f80dfe396c3a829d979

Contents?: true

Size: 141 Bytes

Versions: 3

Compression:

Stored size: 141 Bytes

Contents

module ApiClients
  def api_client(name: "test")
    ::ApiClient.where(name: name).first or ::ApiClient.create!(name: name).reload
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stitches-3.2.0 lib/stitches/spec/api_clients.rb
stitches-3.1.0 lib/stitches/spec/api_clients.rb
stitches-3.0.0 lib/stitches/spec/api_clients.rb