Class: Cufinder::CompanySocial
- Inherits:
-
Object
- Object
- Cufinder::CompanySocial
- Defined in:
- lib/cufinder_ruby/types.rb
Overview
Company social media information
Instance Attribute Summary collapse
-
#facebook ⇒ Object
Returns the value of attribute facebook.
-
#instagram ⇒ Object
Returns the value of attribute instagram.
-
#linkedin ⇒ Object
Returns the value of attribute linkedin.
-
#twitter ⇒ Object
Returns the value of attribute twitter.
-
#youtube ⇒ Object
Returns the value of attribute youtube.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ CompanySocial
constructor
A new instance of CompanySocial.
Constructor Details
#initialize(data = {}) ⇒ CompanySocial
Returns a new instance of CompanySocial.
33 34 35 36 37 38 39 |
# File 'lib/cufinder_ruby/types.rb', line 33 def initialize(data = {}) @facebook = data["facebook"] @linkedin = data["linkedin"] @twitter = data["twitter"] @youtube = data["youtube"] @instagram = data["instagram"] end |
Instance Attribute Details
#facebook ⇒ Object
Returns the value of attribute facebook.
31 32 33 |
# File 'lib/cufinder_ruby/types.rb', line 31 def facebook @facebook end |
#instagram ⇒ Object
Returns the value of attribute instagram.
31 32 33 |
# File 'lib/cufinder_ruby/types.rb', line 31 def instagram @instagram end |
#linkedin ⇒ Object
Returns the value of attribute linkedin.
31 32 33 |
# File 'lib/cufinder_ruby/types.rb', line 31 def linkedin @linkedin end |
#twitter ⇒ Object
Returns the value of attribute twitter.
31 32 33 |
# File 'lib/cufinder_ruby/types.rb', line 31 def twitter @twitter end |
#youtube ⇒ Object
Returns the value of attribute youtube.
31 32 33 |
# File 'lib/cufinder_ruby/types.rb', line 31 def youtube @youtube end |