Sha256: 022b89c30fc3e59350cd5a904deb611829586c3fc3b78ae9889c649e7613ea5c

Contents?: true

Size: 565 Bytes

Versions: 1

Compression:

Stored size: 565 Bytes

Contents

# typed: strict
# frozen_string_literal: true

require "nexus/invision/value_object"
require "sorbet-runtime"

module Nexus
  module Invision
    module Resources
      class UnreadCount < T::Struct
        include ValueObject

        const :count, Integer

        class << self
          extend T::Sig

          sig { params(response: T::Hash[String, T.untyped]).returns(UnreadCount) }
          def from_response(response)
            UnreadCount.new(
              count: response["count"],
            )
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nexus-invision-1.10.2 lib/nexus/invision/resources/unread_count.rb