Class: MozAPI::Base

Inherits:
Object
  • Object
show all
Includes:
HTTParty, Cols
Defined in:
lib/mozapi/base.rb

Direct Known Subclasses

LinkMetrics, URLMetrics

Constant Summary

Constants included from Cols

Cols::ANCHOR_TEXT, Cols::ANCHOR_TEXT_NORMALIZED, Cols::DEFAULT_LINK_COLS, Cols::DEFAULT_SOURCE_COLS, Cols::DEFAULT_TARGET_COLS, Cols::DEFAULT_URL_METRICS_COLS, Cols::DOMAIN_AUTHORITY, Cols::GLOBAL_LIMIT, Cols::LIMIT, Cols::LINKING_C_BLOCKS, Cols::LINKING_ROOT_DOMAINS, Cols::LINKS, Cols::PAGE_AUTHORITY, Cols::ROOT_DOMAIN, Cols::URL

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, key) ⇒ Base

Returns a new instance of Base.



14
15
16
17
# File 'lib/mozapi/base.rb', line 14

def initialize(id, key)
  @api_id = id
  @api_key = key
end

Instance Attribute Details

#api_idObject

Returns the value of attribute api_id.



12
13
14
# File 'lib/mozapi/base.rb', line 12

def api_id
  @api_id
end

#api_keyObject

Returns the value of attribute api_key.



12
13
14
# File 'lib/mozapi/base.rb', line 12

def api_key
  @api_key
end