Class: Google::Apis::AnalyticsdataV1beta::NumericValue

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

Overview

To represent a number.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NumericValue

Returns a new instance of NumericValue.



1387
1388
1389
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1387

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

Instance Attribute Details

#double_valueFloat

Double value Corresponds to the JSON property doubleValue

Returns:

  • (Float)


1380
1381
1382
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1380

def double_value
  @double_value
end

#int64_valueFixnum

Integer value Corresponds to the JSON property int64Value

Returns:

  • (Fixnum)


1385
1386
1387
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1385

def int64_value
  @int64_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1392
1393
1394
1395
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1392

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