Class: Google::Apis::GamesV1::PropertyValue

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

Overview

Wrapper for the value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PropertyValue

Returns a new instance of PropertyValue.



2675
2676
2677
# File 'lib/google/apis/games_v1/classes.rb', line 2675

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

Instance Attribute Details

#bool_valueBoolean Also known as: bool_value?

A boolean value. Corresponds to the JSON property boolValue

Returns:

  • (Boolean)


2647
2648
2649
# File 'lib/google/apis/games_v1/classes.rb', line 2647

def bool_value
  @bool_value
end

#double_valueFloat

A double value. Corresponds to the JSON property doubleValue

Returns:

  • (Float)


2653
2654
2655
# File 'lib/google/apis/games_v1/classes.rb', line 2653

def double_value
  @double_value
end

#duration_valueString

A duration value. Corresponds to the JSON property durationValue

Returns:

  • (String)


2658
2659
2660
# File 'lib/google/apis/games_v1/classes.rb', line 2658

def duration_value
  @duration_value
end

#int_valueFixnum

An integer value. Corresponds to the JSON property intValue

Returns:

  • (Fixnum)


2663
2664
2665
# File 'lib/google/apis/games_v1/classes.rb', line 2663

def int_value
  @int_value
end

#string_valueString

A string value. Corresponds to the JSON property stringValue

Returns:

  • (String)


2668
2669
2670
# File 'lib/google/apis/games_v1/classes.rb', line 2668

def string_value
  @string_value
end

#timestamp_valueString

A timestamp value. Corresponds to the JSON property timestampValue

Returns:

  • (String)


2673
2674
2675
# File 'lib/google/apis/games_v1/classes.rb', line 2673

def timestamp_value
  @timestamp_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2680
2681
2682
2683
2684
2685
2686
2687
# File 'lib/google/apis/games_v1/classes.rb', line 2680

def update!(**args)
  @bool_value = args[:bool_value] if args.key?(:bool_value)
  @double_value = args[:double_value] if args.key?(:double_value)
  @duration_value = args[:duration_value] if args.key?(:duration_value)
  @int_value = args[:int_value] if args.key?(:int_value)
  @string_value = args[:string_value] if args.key?(:string_value)
  @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
end