Class: Google::Apis::AndroidpublisherV2::Timestamp

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Timestamp

Returns a new instance of Timestamp



1677
1678
1679
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1677

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

Instance Attribute Details

#nanosFixnum

Corresponds to the JSON property nanos

Returns:

  • (Fixnum)


1670
1671
1672
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1670

def nanos
  @nanos
end

#secondsFixnum

Corresponds to the JSON property seconds

Returns:

  • (Fixnum)


1675
1676
1677
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1675

def seconds
  @seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1682
1683
1684
1685
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1682

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