Class: Yandex::Webmaster::Hosts::Crawling

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

Constant Summary collapse

STATES =
[
  'indexed',
  'not_indexed',
  'waiting'
].freeze

Constants included from Request

Request::METHODS, Request::METHODS_WITH_BODIES

Constants included from Connection

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

Instance Attribute Summary collapse

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 Attribute Details

#hostObject

Returns the value of attribute host.



17
18
19
# File 'lib/yandex-webmaster/hosts/crawling.rb', line 17

def host
  @host
end

Instance Method Details

#state=(value) ⇒ Object



19
20
21
22
# File 'lib/yandex-webmaster/hosts/crawling.rb', line 19

def state=(value)
  value = value.downcase.underscore
  @state = value if STATES.include?(value)
end