Class: PetfinderV2::Serializers::SocialMedia
- Inherits:
-
Object
- Object
- PetfinderV2::Serializers::SocialMedia
- Defined in:
- lib/petfinder_V2/serializers/organization.rb
Instance Attribute Summary collapse
-
#facebook ⇒ Object
readonly
Returns the value of attribute facebook.
-
#instagram ⇒ Object
readonly
Returns the value of attribute instagram.
-
#pinterest ⇒ Object
readonly
Returns the value of attribute pinterest.
-
#twitter ⇒ Object
readonly
Returns the value of attribute twitter.
-
#youtube ⇒ Object
readonly
Returns the value of attribute youtube.
Instance Method Summary collapse
-
#initialize(data) ⇒ SocialMedia
constructor
A new instance of SocialMedia.
Constructor Details
#initialize(data) ⇒ SocialMedia
9 10 11 12 13 14 15 |
# File 'lib/petfinder_V2/serializers/organization.rb', line 9 def initialize(data) @facebook = data['facebook'] @twitter = data['twitter'] @youtube = data['youtube'] @instagram = data['instagram'] @pinterest = data['pinterest'] end |
Instance Attribute Details
#facebook ⇒ Object (readonly)
Returns the value of attribute facebook.
8 9 10 |
# File 'lib/petfinder_V2/serializers/organization.rb', line 8 def facebook @facebook end |
#instagram ⇒ Object (readonly)
Returns the value of attribute instagram.
8 9 10 |
# File 'lib/petfinder_V2/serializers/organization.rb', line 8 def instagram @instagram end |
#pinterest ⇒ Object (readonly)
Returns the value of attribute pinterest.
8 9 10 |
# File 'lib/petfinder_V2/serializers/organization.rb', line 8 def pinterest @pinterest end |
#twitter ⇒ Object (readonly)
Returns the value of attribute twitter.
8 9 10 |
# File 'lib/petfinder_V2/serializers/organization.rb', line 8 def twitter @twitter end |
#youtube ⇒ Object (readonly)
Returns the value of attribute youtube.
8 9 10 |
# File 'lib/petfinder_V2/serializers/organization.rb', line 8 def youtube @youtube end |