Class: Google::Apis::AndroidpublisherV2::MonthDay

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) ⇒ MonthDay

Returns a new instance of MonthDay.



1105
1106
1107
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1105

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

Instance Attribute Details

#dayFixnum

Day of a month, value in [1, 31] range. Valid range depends on the specified month. Corresponds to the JSON property day

Returns:

  • (Fixnum)


1098
1099
1100
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1098

def day
  @day
end

#monthFixnum

Month of a year. e.g. 1 = JAN, 2 = FEB etc. Corresponds to the JSON property month

Returns:

  • (Fixnum)


1103
1104
1105
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1103

def month
  @month
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1110
1111
1112
1113
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1110

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