Class: MozAPI::Base
- Inherits:
-
Object
- Object
- MozAPI::Base
- Includes:
- HTTParty, Cols
- Defined in:
- lib/mozapi/base.rb
Direct Known Subclasses
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
-
#api_id ⇒ Object
Returns the value of attribute api_id.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
Instance Method Summary collapse
-
#initialize(id, key) ⇒ Base
constructor
A new instance of Base.
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_id ⇒ Object
Returns the value of attribute api_id.
12 13 14 |
# File 'lib/mozapi/base.rb', line 12 def api_id @api_id end |
#api_key ⇒ Object
Returns the value of attribute api_key.
12 13 14 |
# File 'lib/mozapi/base.rb', line 12 def api_key @api_key end |