Class: Demandbase::Record

Inherits:
Object
  • Object
show all
Defined in:
lib/demandbase/record.rb

Direct Known Subclasses

DomainRecord, IPRecord

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#annual_salesObject

Returns the value of attribute annual_sales.



19
20
21
# File 'lib/demandbase/record.rb', line 19

def annual_sales
  @annual_sales
end

#b2bObject

Returns the value of attribute b2b.



22
23
24
# File 'lib/demandbase/record.rb', line 22

def b2b
  @b2b
end

#b2cObject

Returns the value of attribute b2c.



23
24
25
# File 'lib/demandbase/record.rb', line 23

def b2c
  @b2c
end

#cityObject

Returns the value of attribute city.



11
12
13
# File 'lib/demandbase/record.rb', line 11

def city
  @city
end

#company_nameObject

Returns the value of attribute company_name.



3
4
5
# File 'lib/demandbase/record.rb', line 3

def company_name
  @company_name
end

#countryObject

Returns the value of attribute country.



14
15
16
# File 'lib/demandbase/record.rb', line 14

def country
  @country
end

#country_nameObject

Returns the value of attribute country_name.



15
16
17
# File 'lib/demandbase/record.rb', line 15

def country_name
  @country_name
end

#demandbase_sidObject

Returns the value of attribute demandbase_sid.



4
5
6
# File 'lib/demandbase/record.rb', line 4

def demandbase_sid
  @demandbase_sid
end

#employee_countObject

Returns the value of attribute employee_count.



8
9
10
# File 'lib/demandbase/record.rb', line 8

def employee_count
  @employee_count
end

#employee_rangeObject

Returns the value of attribute employee_range.



21
22
23
# File 'lib/demandbase/record.rb', line 21

def employee_range
  @employee_range
end

#forbes_2000Object

Returns the value of attribute forbes_2000.



28
29
30
# File 'lib/demandbase/record.rb', line 28

def forbes_2000
  @forbes_2000
end

#fortune_1000Object

Returns the value of attribute fortune_1000.



27
28
29
# File 'lib/demandbase/record.rb', line 27

def fortune_1000
  @fortune_1000
end

#industryObject

Returns the value of attribute industry.



6
7
8
# File 'lib/demandbase/record.rb', line 6

def industry
  @industry
end

#latitudeObject

Returns the value of attribute latitude.



25
26
27
# File 'lib/demandbase/record.rb', line 25

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



26
27
28
# File 'lib/demandbase/record.rb', line 26

def longitude
  @longitude
end

#marketing_aliasObject

Returns the value of attribute marketing_alias.



5
6
7
# File 'lib/demandbase/record.rb', line 5

def marketing_alias
  @marketing_alias
end

#phoneObject

Returns the value of attribute phone.



16
17
18
# File 'lib/demandbase/record.rb', line 16

def phone
  @phone
end

#primary_sicObject

Returns the value of attribute primary_sic.



9
10
11
# File 'lib/demandbase/record.rb', line 9

def primary_sic
  @primary_sic
end

#revenue_rangeObject

Returns the value of attribute revenue_range.



20
21
22
# File 'lib/demandbase/record.rb', line 20

def revenue_range
  @revenue_range
end

#stateObject

Returns the value of attribute state.



12
13
14
# File 'lib/demandbase/record.rb', line 12

def state
  @state
end

#stock_tickerObject

Returns the value of attribute stock_ticker.



17
18
19
# File 'lib/demandbase/record.rb', line 17

def stock_ticker
  @stock_ticker
end

#street_addressObject

Returns the value of attribute street_address.



10
11
12
# File 'lib/demandbase/record.rb', line 10

def street_address
  @street_address
end

#sub_industryObject

Returns the value of attribute sub_industry.



7
8
9
# File 'lib/demandbase/record.rb', line 7

def sub_industry
  @sub_industry
end

#trafficObject

Returns the value of attribute traffic.



24
25
26
# File 'lib/demandbase/record.rb', line 24

def traffic
  @traffic
end

#web_siteObject

Returns the value of attribute web_site.



18
19
20
# File 'lib/demandbase/record.rb', line 18

def web_site
  @web_site
end

#zipObject

Returns the value of attribute zip.



13
14
15
# File 'lib/demandbase/record.rb', line 13

def zip
  @zip
end

Instance Method Details

#is_academic?Boolean

Returns:

  • (Boolean)


35
36
37
38
39
40
41
# 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?Boolean

Returns:

  • (Boolean)


43
44
45
46
47
48
49
# 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?Boolean

Returns:

  • (Boolean)


51
52
53
54
55
56
57
# 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_keyObject

Return the Demandbase RTID from the environment.



31
32
33
# File 'lib/demandbase/record.rb', line 31

def rtid_key
  ENV['DEMANDBASE_RTID_KEY']
end