lib/stackone/models/shared/department.rb in stackone_client-0.0.2 vs lib/stackone/models/shared/department.rb in stackone_client-0.0.3
- old
+ new
@@ -11,15 +11,15 @@
class Department < ::StackOne::Utils::FieldAugmented
extend T::Sig
- field :id, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
+ field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
- field :name, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
+ field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
- sig { params(id: String, name: String).void }
+ sig { params(id: T.nilable(String), name: T.nilable(String)).void }
def initialize(id: nil, name: nil)
@id = id
@name = name
end
end