diff --git a/lib/ioki/model/operator/ride.rb b/lib/ioki/model/operator/ride.rb index 062b0dea..69d5e102 100644 --- a/lib/ioki/model/operator/ride.rb +++ b/lib/ioki/model/operator/ride.rb @@ -55,6 +55,14 @@ class Ride < Base type: :object, class_name: 'CancellationStatement' + attribute :creator_id, + on: :read, + type: :string + + attribute :creator_type, + on: :read, + type: :string + attribute :destination, on: :read, type: :object, diff --git a/spec/ioki/model/operator/ride_spec.rb b/spec/ioki/model/operator/ride_spec.rb index 528cc52e..c627a487 100644 --- a/spec/ioki/model/operator/ride_spec.rb +++ b/spec/ioki/model/operator/ride_spec.rb @@ -12,6 +12,8 @@ it { is_expected.to define_attribute(:cancellation_reason).as(:string) } it { is_expected.to define_attribute(:cancellation_reason_translated).as(:string) } it { is_expected.to define_attribute(:cancellation_statement).as(:object).with(class_name: 'CancellationStatement') } + it { is_expected.to define_attribute(:creator_id).as(:string) } + it { is_expected.to define_attribute(:creator_type).as(:string) } it { is_expected.to define_attribute(:destination).as(:object).with(class_name: 'RequestedPoint') } it { is_expected.to define_attribute(:driver).as(:object).with(class_name: 'Driver') } it { is_expected.to define_attribute(:driver_id).as(:string) }