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.



1059
1060
1061
# File 'lib/google/apis/forms_v1/classes.rb', line 1059

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



1052
1053
1054
# File 'lib/google/apis/forms_v1/classes.rb', line 1052

def new_location
  @new_location
end

#original_locationGoogle::Apis::FormsV1::Location

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



1057
1058
1059
# File 'lib/google/apis/forms_v1/classes.rb', line 1057

def original_location
  @original_location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1064
1065
1066
1067
# File 'lib/google/apis/forms_v1/classes.rb', line 1064

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