class Ravelry::SocialSite
There is no API access point for PatternAuthors. The information used to create `Ravelry::SocialSite` comes from other objects.
You should not create `Author` objects manually; they are all created–and owned by–other objects.
This does not inherit from {Ravelry::Data} because it doesn't have a corresponding API endpoint.
Attributes
active[R]
favicon_url[R]
id[R]
name[R]
Public Class Methods
new(social_site)
click to toggle source
Creates new `SocialSite` from Ravelry
API attributes.
All class variables are readonly.
# File lib/ravelry/social_site.rb, line 15 def initialize(social_site) @id = social_site[:id] @active = social_site[:active] @favicon_url = social_site[:favicon_url] @name = social_site[:name] end