Class: Sistrix::Keyword
- Inherits:
-
Object
- Object
- Sistrix::Keyword
- Includes:
- Base
- Defined in:
- lib/sistrix/keyword.rb,
lib/sistrix/keyword/us.rb,
lib/sistrix/keyword/sem.rb,
lib/sistrix/keyword/seo.rb,
lib/sistrix/keyword/domain/us.rb,
lib/sistrix/keyword/domain/sem.rb,
lib/sistrix/keyword/domain/seo.rb
Defined Under Namespace
Modules: Domain Classes: Record, Sem, Seo, Us
Instance Attribute Summary collapse
-
#credits ⇒ Object
readonly
Returns the value of attribute credits.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #call(options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ Keyword
constructor
A new instance of Keyword.
Methods included from Base
#base_uri, #fetch, #method_name
Constructor Details
#initialize(options = {}) ⇒ Keyword
Returns a new instance of Keyword.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/sistrix/keyword.rb', line 10 def initialize( = {}) @options = { 'kw' => nil, 'api_key' => Sistrix.config.api_key, }.merge() if Sistrix.config.proxy RestClient.proxy = Sistrix.config.proxy end end |
Instance Attribute Details
#credits ⇒ Object (readonly)
Returns the value of attribute credits.
8 9 10 |
# File 'lib/sistrix/keyword.rb', line 8 def credits @credits end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/sistrix/keyword.rb', line 8 def @options end |