Sha256: d9c5b5c1e2e5dd0552630fe1105a7f42f9633883ae76088656be17000b41e1d0
Contents?: true
Size: 458 Bytes
Versions: 1
Compression:
Stored size: 458 Bytes
Contents
# frozen_string_literal: true require "dry/struct" module Roseflow module StabilityAI module Responses class ErrorResponse < Dry::Struct transform_keys(&:to_sym) attribute :code, Types::Integer attribute :operation, Types::String def success? false end # TODO: Implement this method def self.from(code: nil, operation: nil, body: nil) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roseflow-stabilityai-0.1.0 | lib/roseflow/stabilityai/responses/error_response.rb |