Class: PetfinderV2::Serializers::SocialMedia

Inherits:
Object
  • Object
show all
Defined in:
lib/petfinder_V2/serializers/organization.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#facebookObject (readonly)

Returns the value of attribute facebook.



8
9
10
# File 'lib/petfinder_V2/serializers/organization.rb', line 8

def facebook
  @facebook
end

#instagramObject (readonly)

Returns the value of attribute instagram.



8
9
10
# File 'lib/petfinder_V2/serializers/organization.rb', line 8

def instagram
  @instagram
end

#pinterestObject (readonly)

Returns the value of attribute pinterest.



8
9
10
# File 'lib/petfinder_V2/serializers/organization.rb', line 8

def pinterest
  @pinterest
end

#twitterObject (readonly)

Returns the value of attribute twitter.



8
9
10
# File 'lib/petfinder_V2/serializers/organization.rb', line 8

def twitter
  @twitter
end

#youtubeObject (readonly)

Returns the value of attribute youtube.



8
9
10
# File 'lib/petfinder_V2/serializers/organization.rb', line 8

def youtube
  @youtube
end