Class: Google::Apis::GamesV1::PropertyValue
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::PropertyValue
- 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
-
#bool_value ⇒ Boolean
(also: #bool_value?)
A boolean value.
-
#double_value ⇒ Float
A double value.
-
#duration_value ⇒ String
A duration value.
-
#int_value ⇒ Fixnum
An integer value.
-
#string_value ⇒ String
A string value.
-
#timestamp_value ⇒ String
A timestamp value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PropertyValue
constructor
A new instance of PropertyValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_value ⇒ Boolean Also known as: bool_value?
A boolean value.
Corresponds to the JSON property boolValue
2647 2648 2649 |
# File 'lib/google/apis/games_v1/classes.rb', line 2647 def bool_value @bool_value end |
#double_value ⇒ Float
A double value.
Corresponds to the JSON property doubleValue
2653 2654 2655 |
# File 'lib/google/apis/games_v1/classes.rb', line 2653 def double_value @double_value end |
#duration_value ⇒ String
A duration value.
Corresponds to the JSON property durationValue
2658 2659 2660 |
# File 'lib/google/apis/games_v1/classes.rb', line 2658 def duration_value @duration_value end |
#int_value ⇒ Fixnum
An integer value.
Corresponds to the JSON property intValue
2663 2664 2665 |
# File 'lib/google/apis/games_v1/classes.rb', line 2663 def int_value @int_value end |
#string_value ⇒ String
A string value.
Corresponds to the JSON property stringValue
2668 2669 2670 |
# File 'lib/google/apis/games_v1/classes.rb', line 2668 def string_value @string_value end |
#timestamp_value ⇒ String
A timestamp value.
Corresponds to the JSON property timestampValue
2673 2674 2675 |
# File 'lib/google/apis/games_v1/classes.rb', line 2673 def @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 |