Class: Yandex::Webmaster::Client

Inherits:
Base show all
Defined in:
lib/yandex-webmaster/client.rb

Constant Summary

Constants included from Request

Request::METHODS, Request::METHODS_WITH_BODIES

Constants included from Connection

Yandex::Webmaster::Connection::ACCEPT, Yandex::Webmaster::Connection::ACCEPT_CHARSET, Yandex::Webmaster::Connection::ALLOWED_OPTIONS, Yandex::Webmaster::Connection::CONTENT_TYPE, Yandex::Webmaster::Connection::USER_AGENT

Instance Attribute Summary

Attributes inherited from Base

#configuration

Attributes included from Authorization

#scopes

Instance Method Summary collapse

Methods inherited from Base

#attributes=, const_missing, define_attributes, #initialize, #method_missing

Methods included from Request

#delete_request, #get_request, #post_request, #put_request, #request

Methods included from Connection

#connection

Methods included from Authorization

#auth_code, #authenticate, #authenticated?, #authorize_url, #oauth, #token

Constructor Details

This class inherits a constructor from Yandex::Webmaster::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Yandex::Webmaster::Base

Instance Method Details

#hosts(reload = false) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/yandex-webmaster/client.rb', line 6

def hosts(reload = false)
  @hosts = nil if reload
  @hosts ||= Yandex::Webmaster::ApiFactory.new({
    :klass => Yandex::Webmaster::Host,
    :url => '/hosts',
    :configuration => self.configuration
  })
end