Class: Playwright::PlaywrightApi

Inherits:
Object
  • Object
show all
Defined in:
lib/playwright/playwright_api.rb

Defined Under Namespace

Classes: Factory

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(impl) ⇒ PlaywrightApi

Returns a new instance of PlaywrightApi.



56
57
58
# File 'lib/playwright/playwright_api.rb', line 56

def initialize(impl)
  @impl = impl
end

Class Method Details

.from_channel_owner(channel_owner) ⇒ Object

Note:

Intended for internal use only.

Wrap ChannelOwner. Playwright::ChannelOwners::XXXXX will be wrapped as Playwright::XXXXX Playwright::XXXXX is automatically generated by development/generate_api

Parameters:



9
10
11
# File 'lib/playwright/playwright_api.rb', line 9

def self.from_channel_owner(channel_owner)
  Factory.new(channel_owner, 'ChannelOwners').create
end

Instance Method Details

#==(other) ⇒ Object



60
61
62
# File 'lib/playwright/playwright_api.rb', line 60

def ==(other)
  @impl.to_s == other.instance_variable_get(:'@impl').to_s
end