Sha256: a66d645654d42b543bd696e03b689bab6bdff98356283d2ddcadfde9312f4a18

Contents?: true

Size: 296 Bytes

Versions: 4

Compression:

Stored size: 296 Bytes

Contents

module Pwush
  module Response
    class Value < Dry::Struct::Value
      constructor_type :strict

      attribute :status_code, Types::Coercible::Int
      attribute :status_message, Types::Strict::String.optional
      attribute :body, (Types::Hash | Types::String).optional
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pwush-0.1.4 lib/pwush/response/value.rb
pwush-0.1.3 lib/pwush/response/value.rb
pwush-0.1.2 lib/pwush/response/value.rb
pwush-0.1.0 lib/pwush/response/value.rb