Class: Google::Apis::SurveysV2::SurveysStartRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SurveysStartRequest

Returns a new instance of SurveysStartRequest



718
719
720
# File 'generated/google/apis/surveys_v2/classes.rb', line 718

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

Instance Attribute Details

#max_cost_per_response_nanosFixnum

Threshold to start a survey automically if the quoted prices is less than or equal to this value. See Survey.Cost for more details. Corresponds to the JSON property maxCostPerResponseNanos

Returns:

  • (Fixnum)


716
717
718
# File 'generated/google/apis/surveys_v2/classes.rb', line 716

def max_cost_per_response_nanos
  @max_cost_per_response_nanos
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



723
724
725
# File 'generated/google/apis/surveys_v2/classes.rb', line 723

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