def my_distribution_point(refresh = false)
      @my_distribution_point = nil if refresh
      return @my_distribution_point if @my_distribution_point

      my_net_seg = my_network_segments[0]
      @my_distribution_point = JSS::NetworkSegment.fetch(id: my_net_seg, api: self).distribution_point if my_net_seg
      @my_distribution_point ||= master_distribution_point refresh
      @my_distribution_point
    end
def my_distribution_point(refresh = false)
      @my_distribution_point = nil if refresh
      return @my_distribution_point if @my_distribution_point

      my_net_seg = my_network_segments[0]
      @my_distribution_point = JSS::NetworkSegment.fetch(id: my_net_seg, api: self).distribution_point if my_net_seg
      @my_distribution_point ||= master_distribution_point refresh
      @my_distribution_point
    end
Get the DistributionPoint instance for the machine running
 this code, based on its IP address. If none is defined for this IP address,
 use the result of master_distribution_point

 @param refresh[Boolean] should the distribution point be re-queried?

 @return [JSS::DistributionPoint]