Class: Google::Apis::ConsumersurveysV2::SurveyCost
- Inherits:
-
Object
- Object
- Google::Apis::ConsumersurveysV2::SurveyCost
- 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
-
#cost_per_response_nanos ⇒ Fixnum
Corresponds to the JSON property
costPerResponseNanos
. -
#currency_code ⇒ String
Corresponds to the JSON property
currencyCode
. -
#max_cost_per_response_nanos ⇒ Fixnum
Corresponds to the JSON property
maxCostPerResponseNanos
. -
#nanos ⇒ Fixnum
Corresponds to the JSON property
nanos
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SurveyCost
constructor
A new instance of SurveyCost.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
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_nanos ⇒ Fixnum
Corresponds to the JSON property costPerResponseNanos
355 356 357 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 355 def cost_per_response_nanos @cost_per_response_nanos end |
#currency_code ⇒ String
Corresponds to the JSON property currencyCode
360 361 362 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 360 def currency_code @currency_code end |
#max_cost_per_response_nanos ⇒ Fixnum
Corresponds to the JSON property maxCostPerResponseNanos
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 |
#nanos ⇒ Fixnum
Corresponds to the JSON property nanos
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 |