Class: Pulsedive::Feed

Inherits:
Client
  • Object
show all
Defined in:
lib/pulsedive/feed.rb

Constant Summary

Constants inherited from Client

Client::HOST, Client::URL

Instance Attribute Summary

Attributes inherited from Client

#api_key

Instance Method Summary collapse

Methods inherited from Client

#initialize

Constructor Details

This class inherits a constructor from Pulsedive::Client

Instance Method Details

#get_by_id(fid) ⇒ Object



5
6
7
8
9
10
# File 'lib/pulsedive/feed.rb', line 5

def get_by_id(fid)
  params = {
    "fid": fid
  }
  get("/api/info.php", params) { |json| json }
end

#get_linked_indicators_by_id(fid, page: 0) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/pulsedive/feed.rb', line 12

def get_linked_indicators_by_id(fid, page: 0)
  params = {
    "fid": fid,
    "get": "links",
    "page": page
  }
  get("/api/info.php", params) { |json| json }
end