Sha256: d37d1fc53a83ddffa62d44cef55397156a23b9b83241a9c1b2cd2086e20dfd6c

Contents?: true

Size: 341 Bytes

Versions: 11

Compression:

Stored size: 341 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module Setsuzoku
  # The generic API response object that all API responses should return.
  class ApiResponse < T::Struct
    prop :data, T.nilable(T::Hash[Symbol, T.untyped]), default: {}
    prop :success, T::Boolean, default: false
    prop :error, T.nilable(String), default: nil
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
setsuzoku-0.10.12 lib/setsuzoku/api_response.rb
setsuzoku-0.10.11 lib/setsuzoku/api_response.rb
setsuzoku-0.10.10 lib/setsuzoku/api_response.rb
setsuzoku-0.10.9 lib/setsuzoku/api_response.rb
setsuzoku-0.10.8 lib/setsuzoku/api_response.rb
setsuzoku-0.10.7 lib/setsuzoku/api_response.rb
setsuzoku-0.10.6 lib/setsuzoku/api_response.rb
setsuzoku-0.10.5 lib/setsuzoku/api_response.rb
setsuzoku-0.10.4 lib/setsuzoku/api_response.rb
setsuzoku-0.10.3 lib/setsuzoku/api_response.rb
setsuzoku-0.10.1 lib/setsuzoku/api_response.rb