class Demandbase::Record

Attributes

annual_sales[RW]
b2b[RW]
b2c[RW]
city[RW]
company_name[RW]
country[RW]
country_name[RW]
demandbase_sid[RW]
employee_count[RW]
employee_range[RW]
forbes_2000[RW]
fortune_1000[RW]
industry[RW]
latitude[RW]
longitude[RW]
marketing_alias[RW]
phone[RW]
primary_sic[RW]
revenue_range[RW]
state[RW]
stock_ticker[RW]
street_address[RW]
sub_industry[RW]
traffic[RW]
web_site[RW]
zip[RW]

Public Instance Methods

is_academic?() click to toggle source
# File lib/demandbase/record.rb, line 35
def is_academic?
  if Demandbase::ACADEMIC_SIC_CODES.include?(primary_sic)
    return true
  else
    return false
  end
end
is_government?() click to toggle source
# File lib/demandbase/record.rb, line 43
def is_government?
  if Demandbase::GOVERNMENT_SIC_CODES.include?(primary_sic)
    return true
  else
    return false
  end
end
is_nonprofit?() click to toggle source
# File lib/demandbase/record.rb, line 51
def is_nonprofit?
if Demandbase::NONPROFIT_SIC_CODES.include?(primary_sic)
    return true
  else
    return false
  end
end
rtid_key() click to toggle source

Return the Demandbase RTID from the environment.

# File lib/demandbase/record.rb, line 31
def rtid_key
  ENV['DEMANDBASE_RTID_KEY']
end