Module: Yandex::Webmaster

Defined in:
lib/yandex-webmaster.rb,
lib/yandex-webmaster/base.rb,
lib/yandex-webmaster/host.rb,
lib/yandex-webmaster/client.rb,
lib/yandex-webmaster/errors.rb,
lib/yandex-webmaster/request.rb,
lib/yandex-webmaster/version.rb,
lib/yandex-webmaster/connection.rb,
lib/yandex-webmaster/api_factory.rb,
lib/yandex-webmaster/authorization.rb,
lib/yandex-webmaster/configuration.rb,
lib/yandex-webmaster/hosts/sitemap.rb,
lib/yandex-webmaster/api/attributes.rb,
lib/yandex-webmaster/hosts/crawling.rb,
lib/yandex-webmaster/hosts/top_info.rb,
lib/yandex-webmaster/request/oauth2.rb,
lib/yandex-webmaster/response/hashify.rb,
lib/yandex-webmaster/hosts/sitemap_info.rb,
lib/yandex-webmaster/hosts/verification.rb,
lib/yandex-webmaster/api/attributes_builder.rb,
lib/yandex-webmaster/api/attributes/types/base.rb,
lib/yandex-webmaster/api/attributes/types/date.rb,
lib/yandex-webmaster/api/attributes/types/time.rb,
lib/yandex-webmaster/api/attributes/types/float.rb,
lib/yandex-webmaster/api/attributes/types/symbol.rb,
lib/yandex-webmaster/api/attributes/types/boolean.rb,
lib/yandex-webmaster/api/attributes/types/integer.rb,
lib/yandex-webmaster/api/attributes/reader_builder.rb,
lib/yandex-webmaster/api/attributes/writer_builder.rb,
lib/yandex-webmaster/api/attributes/types/date_time.rb,
lib/yandex-webmaster/api/attributes/accessor_builder.rb

Defined Under Namespace

Modules: Api, Authorization, Connection, Errors, Hosts, Request, Response, Version Classes: ApiFactory, Base, Client, Configuration, Host

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

config/initializers/webmaster.rb (for instance)

Yandex::Webmaster.configure do |config|

config.application_id = 'application_id'
config.application_password = 'application_password'

end

elsewhere

client = Yandex::Webmaster::Client.new

Yields:

  • (_self)

Yield Parameters:



47
48
49
50
# File 'lib/yandex-webmaster.rb', line 47

def configure
  yield self
  true
end

.method_missing(method, *args, &block) ⇒ Object

Delegate to Yandex::Webmaster::Client



27
28
29
30
# File 'lib/yandex-webmaster.rb', line 27

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.new(options = {}, &block) ⇒ Yandex::Webmaster::Client

Alias for Yandex::Webmaster::Client.new



21
22
23
# File 'lib/yandex-webmaster.rb', line 21

def new(options = {}, &block)
  Yandex::Webmaster::Client.new(:configuration => options, &block)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/yandex-webmaster.rb', line 32

def respond_to?(method, include_private = false)
  new.respond_to?(method, include_private) || super(method, include_private)
end