Class: Google::Apis::YoutubePartnerV1::IntervalCondition

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

Returns a new instance of IntervalCondition.



1806
1807
1808
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1806

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

Instance Attribute Details

#highFloat

The maximum (inclusive) allowed value for the condition to be satisfied. The default value is ∞. Corresponds to the JSON property high

Returns:

  • (Float)


1798
1799
1800
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1798

def high
  @high
end

#lowFloat

The minimum (inclusive) allowed value for the condition to be satisfied. The default value is -∞. Corresponds to the JSON property low

Returns:

  • (Float)


1804
1805
1806
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1804

def low
  @low
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1811
1812
1813
1814
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1811

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