Class: CrunchbaseAcademic::API
- Inherits:
-
Object
- Object
- CrunchbaseAcademic::API
- Defined in:
- lib/crunchbase_academic/api.rb
Constant Summary collapse
- CB_URL =
'http://api.crunchbase.com/v/2/'
Class Attribute Summary collapse
-
.key ⇒ Object
Returns the value of attribute key.
-
.timeout_limit ⇒ Object
Returns the value of attribute timeout_limit.
Class Method Summary collapse
Class Attribute Details
.key ⇒ Object
Returns the value of attribute key.
12 13 14 |
# File 'lib/crunchbase_academic/api.rb', line 12 def key @key end |
.timeout_limit ⇒ Object
Returns the value of attribute timeout_limit.
12 13 14 |
# File 'lib/crunchbase_academic/api.rb', line 12 def timeout_limit @timeout_limit end |
Class Method Details
.fetch(permalink, object) ⇒ Object
16 17 18 19 |
# File 'lib/crunchbase_academic/api.rb', line 16 def self.fetch(permalink, object) uri = CB_URL + "#{object}/#{permalink}" get_json_response(uri) end |