Class: Google::Apis::ConsumersurveysV2::SurveyCost

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SurveyCost

Returns a new instance of SurveyCost



372
373
374
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 372

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

Instance Attribute Details

#cost_per_response_nanosFixnum

Corresponds to the JSON property costPerResponseNanos

Returns:

  • (Fixnum)


355
356
357
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 355

def cost_per_response_nanos
  @cost_per_response_nanos
end

#currency_codeString

Corresponds to the JSON property currencyCode

Returns:

  • (String)


360
361
362
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 360

def currency_code
  @currency_code
end

#max_cost_per_response_nanosFixnum

Corresponds to the JSON property maxCostPerResponseNanos

Returns:

  • (Fixnum)


365
366
367
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 365

def max_cost_per_response_nanos
  @max_cost_per_response_nanos
end

#nanosFixnum

Corresponds to the JSON property nanos

Returns:

  • (Fixnum)


370
371
372
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 370

def nanos
  @nanos
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



377
378
379
380
381
382
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 377

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