Class: Cb::Models::Company
- Inherits:
-
Object
- Object
- Cb::Models::Company
- Defined in:
- lib/cb/models/implementations/company.rb
Defined Under Namespace
Classes: Address
Instance Attribute Summary collapse
-
#addresses ⇒ Object
Returns the value of attribute addresses.
-
#benefits ⇒ Object
Returns the value of attribute benefits.
-
#benefits_label ⇒ Object
Returns the value of attribute benefits_label.
-
#bright_cove_video ⇒ Object
Returns the value of attribute bright_cove_video.
-
#bulletin_board ⇒ Object
Returns the value of attribute bulletin_board.
-
#button_color ⇒ Object
Returns the value of attribute button_color.
-
#button_text_color ⇒ Object
Returns the value of attribute button_text_color.
-
#career_opps ⇒ Object
Returns the value of attribute career_opps.
-
#career_opps_label ⇒ Object
Returns the value of attribute career_opps_label.
-
#college ⇒ Object
Returns the value of attribute college.
-
#college_label ⇒ Object
Returns the value of attribute college_label.
-
#contact ⇒ Object
Returns the value of attribute contact.
-
#contact_label ⇒ Object
Returns the value of attribute contact_label.
-
#culture ⇒ Object
Returns the value of attribute culture.
-
#culture_label ⇒ Object
Returns the value of attribute culture_label.
-
#did ⇒ Object
Returns the value of attribute did.
-
#diversity ⇒ Object
Returns the value of attribute diversity.
-
#diversity_label ⇒ Object
Returns the value of attribute diversity_label.
-
#extra_custom_tab ⇒ Object
Returns the value of attribute extra_custom_tab.
-
#facebook_url ⇒ Object
Returns the value of attribute facebook_url.
-
#facebook_widget ⇒ Object
Returns the value of attribute facebook_widget.
-
#footer_image ⇒ Object
Returns the value of attribute footer_image.
-
#gutter_bg_color ⇒ Object
Returns the value of attribute gutter_bg_color.
-
#header_image ⇒ Object
Returns the value of attribute header_image.
-
#headquarters ⇒ Object
Returns the value of attribute headquarters.
-
#hh_name ⇒ Object
Returns the value of attribute hh_name.
-
#history ⇒ Object
Returns the value of attribute history.
-
#host_sites ⇒ Object
Returns the value of attribute host_sites.
-
#image_file ⇒ Object
Returns the value of attribute image_file.
-
#industry ⇒ Object
Returns the value of attribute industry.
-
#info_tabs ⇒ Object
Returns the value of attribute info_tabs.
-
#is_enhance ⇒ Object
Returns the value of attribute is_enhance.
-
#is_military ⇒ Object
Returns the value of attribute is_military.
-
#is_premium ⇒ Object
Returns the value of attribute is_premium.
-
#linked_in_url ⇒ Object
Returns the value of attribute linked_in_url.
-
#linked_in_widget ⇒ Object
Returns the value of attribute linked_in_widget.
-
#links ⇒ Object
Returns the value of attribute links.
-
#logo ⇒ Object
Returns the value of attribute logo.
-
#my_content_tabs ⇒ Object
Returns the value of attribute my_content_tabs.
-
#my_photos ⇒ Object
Returns the value of attribute my_photos.
-
#name ⇒ Object
Returns the value of attribute name.
-
#news_feed ⇒ Object
Returns the value of attribute news_feed.
-
#overview ⇒ Object
Returns the value of attribute overview.
-
#people ⇒ Object
Returns the value of attribute people.
-
#people_label ⇒ Object
Returns the value of attribute people_label.
-
#photos ⇒ Object
Returns the value of attribute photos.
-
#products ⇒ Object
Returns the value of attribute products.
-
#products_label ⇒ Object
Returns the value of attribute products_label.
-
#s_drive ⇒ Object
Returns the value of attribute s_drive.
-
#side_bar_header_color ⇒ Object
Returns the value of attribute side_bar_header_color.
-
#size ⇒ Object
Returns the value of attribute size.
-
#tab_header_bg_color ⇒ Object
Returns the value of attribute tab_header_bg_color.
-
#tab_header_hover_color ⇒ Object
Returns the value of attribute tab_header_hover_color.
-
#tab_header_text_color ⇒ Object
Returns the value of attribute tab_header_text_color.
-
#testimonials ⇒ Object
Returns the value of attribute testimonials.
-
#total_jobs ⇒ Object
Returns the value of attribute total_jobs.
-
#twitter_url ⇒ Object
Returns the value of attribute twitter_url.
-
#twitter_widget ⇒ Object
Returns the value of attribute twitter_widget.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
-
#vision ⇒ Object
Returns the value of attribute vision.
-
#vision_label ⇒ Object
Returns the value of attribute vision_label.
-
#year_founded ⇒ Object
Returns the value of attribute year_founded.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Company
constructor
A new instance of Company.
Constructor Details
#initialize(args = {}) ⇒ Company
Returns a new instance of Company.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/cb/models/implementations/company.rb', line 33 def initialize(args = {}) return if args.nil? # General ################################################################ @did = args['CompanyDID'] || '' @name = args['CompanyName'] || '' @hh_name = args['HHName'] || '' @url = args['URL'] || '' @size = args['CompanySize'] || '' @type = args['CompanyType'] || '' @year_founded = args['YearFounded'] || '' @news_feed = args['NewsFeed'] || '' @overview = args['Overview'] || '' @total_jobs = args['TotalNumberJobs'] || '' @headquarters = args['Headquarter'] || '' @host_sites = args['HostSites'] || '' @s_drive = args['SDrive'] || '' @industry = args['IndustryType'] || '' # Images ################################################################ @logo = args['CompanyLogo'] || '' @header_image = args['HeaderImage'] || '' @footer_image = args['FooterImage'] || '' @image_file = args['ImageFile'] || '' @photos = args['CompanyPhotos']['PhotoList'] || '' @my_photos = args['MyPhotos'] || '' # Videos ################################################################ @bright_cove_video = args['BrightcoveVideo'] || '' # Social sites ################################################################ @facebook_url = args['FBPageURL'] || args['FacebookURL'] || '' @facebook_widget = args['FacebookWidget'] || '' @twitter_url = args['TwitterURL'] || '' @twitter_widget = args['TwitterWidget'] || '' @linked_in_url = args['LinkedURL'] || '' @linked_in_widget = args['LinkedInWidget'] || '' # Detailed information (blobs) ################################################################ @history = args['HistoryBody'] || '' @people = args['PeopleBody'] || '' @people_label = args['PeopleLabel'] || '' @contact = args['ContactBody'] || '' @contact_label = args['ContactLabel'] || '' @benefits = args['BenefitsBody'] || '' @benefits_label = args['BenefitsLabel'] || '' @vision = args['VisionBody'] || '' @vision_label = args['VisionLabel'] || '' @products = args['ProductsBody'] || '' @products_label = args['ProductsLabel'] || '' @career_opps = args['CareerOpportunitiesBody'] || '' @career_opps_label = args['CareerOpportunitiesLabel'] || '' @culture = args['CultureBody'] || '' @culture_label = args['CultureLabel'] || '' @bulletin_board = args['CompanyBulletinBoard']['bulletinboards'] || '' @testimonials = args['Testimonials']['Testimonials'] || '' @addresses = [] if args.key?('CompanyAddress') unless args['CompanyAddress'].empty? || args['CompanyAddress']['AddressList'].nil? args['CompanyAddress']['AddressList']['Address'].each do |cur_addr| @addresses << Company::Address.new(cur_addr) end end end @college = args['CollegeBody'] || '' @college_label = args['CollegeLabel'] || '' @diversity = args['DiversityBody'] || '' @diversity_label = args['DiversityLabel'] || '' @links = args['CompanyLinksCollection']['companylinks'] || '' # tabs, colors, buttons, headers, etc ################################################################ @extra_custom_tab = args['ExtraCustomTab'] || '' @tab_header_bg_color = args['TabHeaderBGColor'] || '' @tab_header_text_color = args['TabHeaderTextColor'] || '' @tab_header_hover_color = args['TabHeaderHoverColor'] || '' @side_bar_header_color = args['SidebarHeaderColor'] || '' @button_color = args['ButtonColor'] || '' @button_text_color = args['ButtonTextColor'] || '' @gutter_bg_color = args['GutterBGColor'] || '' @my_content_tabs = args['MyContent']['MyContentTabs'] || '' @info_tabs = args['InfoTabs']['InfoTabs'] || '' @is_enhance = args['isEnhance'] || '' @is_military = args['MilitaryIcon'] || '' @is_premium = args['PremiumProfile'] || '' end |
Instance Attribute Details
#addresses ⇒ Object
Returns the value of attribute addresses.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def addresses @addresses end |
#benefits ⇒ Object
Returns the value of attribute benefits.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def benefits @benefits end |
#benefits_label ⇒ Object
Returns the value of attribute benefits_label.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def benefits_label @benefits_label end |
#bright_cove_video ⇒ Object
Returns the value of attribute bright_cove_video.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def bright_cove_video @bright_cove_video end |
#bulletin_board ⇒ Object
Returns the value of attribute bulletin_board.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def bulletin_board @bulletin_board end |
#button_color ⇒ Object
Returns the value of attribute button_color.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def @button_color end |
#button_text_color ⇒ Object
Returns the value of attribute button_text_color.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def @button_text_color end |
#career_opps ⇒ Object
Returns the value of attribute career_opps.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def career_opps @career_opps end |
#career_opps_label ⇒ Object
Returns the value of attribute career_opps_label.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def career_opps_label @career_opps_label end |
#college ⇒ Object
Returns the value of attribute college.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def college @college end |
#college_label ⇒ Object
Returns the value of attribute college_label.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def college_label @college_label end |
#contact ⇒ Object
Returns the value of attribute contact.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def contact @contact end |
#contact_label ⇒ Object
Returns the value of attribute contact_label.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def contact_label @contact_label end |
#culture ⇒ Object
Returns the value of attribute culture.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def culture @culture end |
#culture_label ⇒ Object
Returns the value of attribute culture_label.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def culture_label @culture_label end |
#did ⇒ Object
Returns the value of attribute did.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def did @did end |
#diversity ⇒ Object
Returns the value of attribute diversity.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def diversity @diversity end |
#diversity_label ⇒ Object
Returns the value of attribute diversity_label.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def diversity_label @diversity_label end |
#extra_custom_tab ⇒ Object
Returns the value of attribute extra_custom_tab.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def extra_custom_tab @extra_custom_tab end |
#facebook_url ⇒ Object
Returns the value of attribute facebook_url.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def facebook_url @facebook_url end |
#facebook_widget ⇒ Object
Returns the value of attribute facebook_widget.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def @facebook_widget end |
#footer_image ⇒ Object
Returns the value of attribute footer_image.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def @footer_image end |
#gutter_bg_color ⇒ Object
Returns the value of attribute gutter_bg_color.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def gutter_bg_color @gutter_bg_color end |
#header_image ⇒ Object
Returns the value of attribute header_image.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def header_image @header_image end |
#headquarters ⇒ Object
Returns the value of attribute headquarters.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def headquarters @headquarters end |
#hh_name ⇒ Object
Returns the value of attribute hh_name.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def hh_name @hh_name end |
#history ⇒ Object
Returns the value of attribute history.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def history @history end |
#host_sites ⇒ Object
Returns the value of attribute host_sites.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def host_sites @host_sites end |
#image_file ⇒ Object
Returns the value of attribute image_file.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def image_file @image_file end |
#industry ⇒ Object
Returns the value of attribute industry.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def industry @industry end |
#info_tabs ⇒ Object
Returns the value of attribute info_tabs.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def info_tabs @info_tabs end |
#is_enhance ⇒ Object
Returns the value of attribute is_enhance.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def is_enhance @is_enhance end |
#is_military ⇒ Object
Returns the value of attribute is_military.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def is_military @is_military end |
#is_premium ⇒ Object
Returns the value of attribute is_premium.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def is_premium @is_premium end |
#linked_in_url ⇒ Object
Returns the value of attribute linked_in_url.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def linked_in_url @linked_in_url end |
#linked_in_widget ⇒ Object
Returns the value of attribute linked_in_widget.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def @linked_in_widget end |
#links ⇒ Object
Returns the value of attribute links.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def links @links end |
#logo ⇒ Object
Returns the value of attribute logo.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def logo @logo end |
#my_content_tabs ⇒ Object
Returns the value of attribute my_content_tabs.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def my_content_tabs @my_content_tabs end |
#my_photos ⇒ Object
Returns the value of attribute my_photos.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def my_photos @my_photos end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def name @name end |
#news_feed ⇒ Object
Returns the value of attribute news_feed.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def news_feed @news_feed end |
#overview ⇒ Object
Returns the value of attribute overview.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def overview @overview end |
#people ⇒ Object
Returns the value of attribute people.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def people @people end |
#people_label ⇒ Object
Returns the value of attribute people_label.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def people_label @people_label end |
#photos ⇒ Object
Returns the value of attribute photos.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def photos @photos end |
#products ⇒ Object
Returns the value of attribute products.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def products @products end |
#products_label ⇒ Object
Returns the value of attribute products_label.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def products_label @products_label end |
#s_drive ⇒ Object
Returns the value of attribute s_drive.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def s_drive @s_drive end |
#side_bar_header_color ⇒ Object
Returns the value of attribute side_bar_header_color.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def @side_bar_header_color end |
#size ⇒ Object
Returns the value of attribute size.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def size @size end |
#tab_header_bg_color ⇒ Object
Returns the value of attribute tab_header_bg_color.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def tab_header_bg_color @tab_header_bg_color end |
#tab_header_hover_color ⇒ Object
Returns the value of attribute tab_header_hover_color.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def tab_header_hover_color @tab_header_hover_color end |
#tab_header_text_color ⇒ Object
Returns the value of attribute tab_header_text_color.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def tab_header_text_color @tab_header_text_color end |
#testimonials ⇒ Object
Returns the value of attribute testimonials.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def testimonials @testimonials end |
#total_jobs ⇒ Object
Returns the value of attribute total_jobs.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def total_jobs @total_jobs end |
#twitter_url ⇒ Object
Returns the value of attribute twitter_url.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def twitter_url @twitter_url end |
#twitter_widget ⇒ Object
Returns the value of attribute twitter_widget.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def @twitter_widget end |
#type ⇒ Object
Returns the value of attribute type.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def url @url end |
#vision ⇒ Object
Returns the value of attribute vision.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def vision @vision end |
#vision_label ⇒ Object
Returns the value of attribute vision_label.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def vision_label @vision_label end |
#year_founded ⇒ Object
Returns the value of attribute year_founded.
14 15 16 |
# File 'lib/cb/models/implementations/company.rb', line 14 def year_founded @year_founded end |