Class: Google::Apis::AndroidpublisherV3::Timestamp

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidpublisher_v3/classes.rb,
generated/google/apis/androidpublisher_v3/representations.rb,
generated/google/apis/androidpublisher_v3/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.



2013
2014
2015
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2013

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

Instance Attribute Details

#nanosFixnum

Corresponds to the JSON property nanos

Returns:

  • (Fixnum)


2006
2007
2008
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2006

def nanos
  @nanos
end

#secondsFixnum

Corresponds to the JSON property seconds

Returns:

  • (Fixnum)


2011
2012
2013
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2011

def seconds
  @seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2018
2019
2020
2021
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2018

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