lib/pwush/response/value.rb in pwush-0.3.0 vs lib/pwush/response/value.rb in pwush-0.4.0
- old
+ new
@@ -1,7 +1,9 @@
+# frozen_string_literal: true
+
module Pwush
module Response
- class Value < Dry::Struct::Value
+ class Value < Dry::Struct
attribute :status_code, Types::Coercible::Integer
attribute? :status_message, Types::Strict::String
attribute? :body, (Types::Hash | Types::String).optional
end
end