Class: Demandbase::Record
- Inherits:
-
Object
- Object
- Demandbase::Record
- Defined in:
- lib/demandbase/record.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#annual_sales ⇒ Object
Returns the value of attribute annual_sales.
-
#b2b ⇒ Object
Returns the value of attribute b2b.
-
#b2c ⇒ Object
Returns the value of attribute b2c.
-
#city ⇒ Object
Returns the value of attribute city.
-
#company_name ⇒ Object
Returns the value of attribute company_name.
-
#country ⇒ Object
Returns the value of attribute country.
-
#country_name ⇒ Object
Returns the value of attribute country_name.
-
#demandbase_sid ⇒ Object
Returns the value of attribute demandbase_sid.
-
#employee_count ⇒ Object
Returns the value of attribute employee_count.
-
#employee_range ⇒ Object
Returns the value of attribute employee_range.
-
#forbes_2000 ⇒ Object
Returns the value of attribute forbes_2000.
-
#fortune_1000 ⇒ Object
Returns the value of attribute fortune_1000.
-
#industry ⇒ Object
Returns the value of attribute industry.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#marketing_alias ⇒ Object
Returns the value of attribute marketing_alias.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#primary_sic ⇒ Object
Returns the value of attribute primary_sic.
-
#revenue_range ⇒ Object
Returns the value of attribute revenue_range.
-
#state ⇒ Object
Returns the value of attribute state.
-
#stock_ticker ⇒ Object
Returns the value of attribute stock_ticker.
-
#street_address ⇒ Object
Returns the value of attribute street_address.
-
#sub_industry ⇒ Object
Returns the value of attribute sub_industry.
-
#traffic ⇒ Object
Returns the value of attribute traffic.
-
#web_site ⇒ Object
Returns the value of attribute web_site.
-
#zip ⇒ Object
Returns the value of attribute zip.
Instance Method Summary collapse
- #is_academic? ⇒ Boolean
- #is_government? ⇒ Boolean
- #is_nonprofit? ⇒ Boolean
-
#rtid_key ⇒ Object
Return the Demandbase RTID from the environment.
Instance Attribute Details
#annual_sales ⇒ Object
Returns the value of attribute annual_sales.
19 20 21 |
# File 'lib/demandbase/record.rb', line 19 def annual_sales @annual_sales end |
#b2b ⇒ Object
Returns the value of attribute b2b.
22 23 24 |
# File 'lib/demandbase/record.rb', line 22 def b2b @b2b end |
#b2c ⇒ Object
Returns the value of attribute b2c.
23 24 25 |
# File 'lib/demandbase/record.rb', line 23 def b2c @b2c end |
#city ⇒ Object
Returns the value of attribute city.
11 12 13 |
# File 'lib/demandbase/record.rb', line 11 def city @city end |
#company_name ⇒ Object
Returns the value of attribute company_name.
3 4 5 |
# File 'lib/demandbase/record.rb', line 3 def company_name @company_name end |
#country ⇒ Object
Returns the value of attribute country.
14 15 16 |
# File 'lib/demandbase/record.rb', line 14 def country @country end |
#country_name ⇒ Object
Returns the value of attribute country_name.
15 16 17 |
# File 'lib/demandbase/record.rb', line 15 def country_name @country_name end |
#demandbase_sid ⇒ Object
Returns the value of attribute demandbase_sid.
4 5 6 |
# File 'lib/demandbase/record.rb', line 4 def demandbase_sid @demandbase_sid end |
#employee_count ⇒ Object
Returns the value of attribute employee_count.
8 9 10 |
# File 'lib/demandbase/record.rb', line 8 def employee_count @employee_count end |
#employee_range ⇒ Object
Returns the value of attribute employee_range.
21 22 23 |
# File 'lib/demandbase/record.rb', line 21 def employee_range @employee_range end |
#forbes_2000 ⇒ Object
Returns the value of attribute forbes_2000.
28 29 30 |
# File 'lib/demandbase/record.rb', line 28 def forbes_2000 @forbes_2000 end |
#fortune_1000 ⇒ Object
Returns the value of attribute fortune_1000.
27 28 29 |
# File 'lib/demandbase/record.rb', line 27 def fortune_1000 @fortune_1000 end |
#industry ⇒ Object
Returns the value of attribute industry.
6 7 8 |
# File 'lib/demandbase/record.rb', line 6 def industry @industry end |
#latitude ⇒ Object
Returns the value of attribute latitude.
25 26 27 |
# File 'lib/demandbase/record.rb', line 25 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
26 27 28 |
# File 'lib/demandbase/record.rb', line 26 def longitude @longitude end |
#marketing_alias ⇒ Object
Returns the value of attribute marketing_alias.
5 6 7 |
# File 'lib/demandbase/record.rb', line 5 def marketing_alias @marketing_alias end |
#phone ⇒ Object
Returns the value of attribute phone.
16 17 18 |
# File 'lib/demandbase/record.rb', line 16 def phone @phone end |
#primary_sic ⇒ Object
Returns the value of attribute primary_sic.
9 10 11 |
# File 'lib/demandbase/record.rb', line 9 def primary_sic @primary_sic end |
#revenue_range ⇒ Object
Returns the value of attribute revenue_range.
20 21 22 |
# File 'lib/demandbase/record.rb', line 20 def revenue_range @revenue_range end |
#state ⇒ Object
Returns the value of attribute state.
12 13 14 |
# File 'lib/demandbase/record.rb', line 12 def state @state end |
#stock_ticker ⇒ Object
Returns the value of attribute stock_ticker.
17 18 19 |
# File 'lib/demandbase/record.rb', line 17 def stock_ticker @stock_ticker end |
#street_address ⇒ Object
Returns the value of attribute street_address.
10 11 12 |
# File 'lib/demandbase/record.rb', line 10 def street_address @street_address end |
#sub_industry ⇒ Object
Returns the value of attribute sub_industry.
7 8 9 |
# File 'lib/demandbase/record.rb', line 7 def sub_industry @sub_industry end |
#traffic ⇒ Object
Returns the value of attribute traffic.
24 25 26 |
# File 'lib/demandbase/record.rb', line 24 def traffic @traffic end |
#web_site ⇒ Object
Returns the value of attribute web_site.
18 19 20 |
# File 'lib/demandbase/record.rb', line 18 def web_site @web_site end |
#zip ⇒ Object
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
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
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
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_key ⇒ Object
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 |