Method: Figo#modify_security

Defined in:
lib/security/api_call.rb

#modify_security(account_id, security_id, visited) ⇒ Object

Modify a security.

Parameters:

  • account_id (String)
    • ID of the account the security belongs to

  • security_id (String)
    • ID of the security to change

  • visited (Boolean)
    • a bit showing whether the user has already seen this security or not



42
43
44
45
# File 'lib/security/api_call.rb', line 42

def modify_security (, security_id, visited)
  data = {:visited => visited}
  query_api "/rest/accounts/" +  + "/securities/" + security_id, data, "PUT"
end