Sha256: b590312c58969444800a3228f85299b07f8369405d55e679e5f3c839357e4c5f
Contents?: true
Size: 544 Bytes
Versions: 2
Compression:
Stored size: 544 Bytes
Contents
# typed: strict # frozen_string_literal: true require "nexus/invision/value_object" require "sorbet-runtime" module Nexus module Invision module Resources class User < T::Struct include ValueObject const :id, Integer class << self extend T::Sig sig { params(response: T::Hash[String, T.untyped]).returns(User) } def from_response(response) User.new( id: Integer(response["id"]), ) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nexus-invision-1.11.0 | lib/nexus/invision/resources/user.rb |
nexus-invision-1.10.2 | lib/nexus/invision/resources/user.rb |