ad_manager_api/lib/ad_manager_api/ad_manager_api_datetime.rb
def to_h
      {
        :date => AdManagerApi::AdManagerDate.new(
            @api, @time.year, @time.month, @time.day
        ).to_h,
        :hour => @time.hour,
        :minute => @time.min,
        :second => @time.sec,
        :time_zone_id => @timezone.identifier
      }
    end
def to_h
      {
        :date => AdManagerApi::AdManagerDate.new(
            @api, @time.year, @time.month, @time.day
        ).to_h,
        :hour => @time.hour,
        :minute => @time.min,
        :second => @time.sec,
        :time_zone_id => @timezone.identifier
      }
    end
def to_h { :date => AdManagerApi :: AdManagerDate . new ( @api , @time . year , @time . month , @time . day ) . to_h , :hour => @time . hour , :minute => @time . min , :second => @time . sec , :time_zone_id => @timezone . identifier } end
Convert AdManagerDateTime into a hash representation which can be consumed
 by the Ad Manager API. E.g., a hash that can be passed as PQL DateTime
 variables.

 Returns:
   - ad_manager_datetime_hash: a hash representation of an
     AdManagerDateTime
Convert AdManagerDateTime into a hash representation which can be consumed by the Ad Manager API . E . g . a hash that can be passed as PQL DateTime variables .