lib/stack_one/models/shared/questionnaire.rb in stackone_client-0.2.7 vs lib/stack_one/models/shared/questionnaire.rb in stackone_client-0.2.9
- old
+ new
@@ -11,17 +11,20 @@
class Questionnaire < ::StackOne::Utils::FieldAugmented
extend T::Sig
field :answers, T.nilable(T::Array[::StackOne::Shared::Answer]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('answers') } }
- # Unique identifier of the questionnaire
+ # Unique identifier
field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
+ # Provider's unique identifier
+ field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
- sig { params(answers: T.nilable(T::Array[::StackOne::Shared::Answer]), id: T.nilable(::String)).void }
- def initialize(answers: nil, id: nil)
+ sig { params(answers: T.nilable(T::Array[::StackOne::Shared::Answer]), id: T.nilable(::String), remote_id: T.nilable(::String)).void }
+ def initialize(answers: nil, id: nil, remote_id: nil)
@answers = answers
@id = id
+ @remote_id = remote_id
end
end
end
end