Class: Google::Apis::FormsV1::MoveItemRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/forms_v1/classes.rb,
lib/google/apis/forms_v1/representations.rb,
lib/google/apis/forms_v1/representations.rb

Overview

Move an item in a form.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MoveItemRequest

Returns a new instance of MoveItemRequest.



1042
1043
1044
# File 'lib/google/apis/forms_v1/classes.rb', line 1042

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#new_locationGoogle::Apis::FormsV1::Location

A specific location in a form. Corresponds to the JSON property newLocation



1035
1036
1037
# File 'lib/google/apis/forms_v1/classes.rb', line 1035

def new_location
  @new_location
end

#original_locationGoogle::Apis::FormsV1::Location

A specific location in a form. Corresponds to the JSON property originalLocation



1040
1041
1042
# File 'lib/google/apis/forms_v1/classes.rb', line 1040

def original_location
  @original_location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1047
1048
1049
1050
# File 'lib/google/apis/forms_v1/classes.rb', line 1047

def update!(**args)
  @new_location = args[:new_location] if args.key?(:new_location)
  @original_location = args[:original_location] if args.key?(:original_location)
end