class Watchcow::ContractInfo

Constants

URL

Public Class Methods

call() click to toggle source

Get days remain

# File lib/watchcow/contract_info.rb, line 7
def call
  JSON.parse(HTTParty.get(URL))
end
current_contracts() click to toggle source
# File lib/watchcow/contract_info.rb, line 11
def current_contracts
  call.dig('data').map{|x| x["contract_type"]}.uniq
end