class Selenium::WebDriver::Interactions::PointerPress

def encode

def encode
  {type: type, button: @button}
end