def view(media_or_io, options = {})
      content = get_content(media_or_io)
      transition = options.fetch(:transition, "None")

      @logger.info "Fetched content (#{content.bytesize} bytes)"
      @logger.debug "PUT /photo with transition: #{transition}"

      response = connection.put("/photo", content, {
        "Content-Length" => content.bytesize.to_s,
        "X-Apple-Transition" => transition
      })

      response.response.status == 200
    end
def view(media_or_io, options = {})
      content = get_content(media_or_io)
      transition = options.fetch(:transition, "None")

      @logger.info "Fetched content (#{content.bytesize} bytes)"
      @logger.debug "PUT /photo with transition: #{transition}"

      response = connection.put("/photo", content, {
        "Content-Length" => content.bytesize.to_s,
        "X-Apple-Transition" => transition
      })

      response.response.status == 200
    end
Public: Broadcasts the content to the device

 media_or_io - The url, file path or io of the image/s
 options     - Options that include the device
               * transition: the type of transition (Default: None)

 Returns if the images was actually sent