Class: Ravelry::SocialSite
- Inherits:
-
Object
- Object
- Ravelry::SocialSite
- Defined in:
- lib/ravelry/social_site.rb
Overview
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 Data because it doesn’t have a corresponding API endpoint.
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#favicon_url ⇒ Object
readonly
Returns the value of attribute favicon_url.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(social_site) ⇒ SocialSite
constructor
Creates new ‘SocialSite` from Ravelry API attributes.
Constructor Details
#initialize(social_site) ⇒ SocialSite
Creates new ‘SocialSite` from Ravelry API attributes.
All class variables are readonly.
15 16 17 18 19 20 |
# File 'lib/ravelry/social_site.rb', line 15 def initialize() @id = [:id] @active = [:active] @favicon_url = [:favicon_url] @name = [:name] end |
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active.
9 10 11 |
# File 'lib/ravelry/social_site.rb', line 9 def active @active end |
#favicon_url ⇒ Object (readonly)
Returns the value of attribute favicon_url.
9 10 11 |
# File 'lib/ravelry/social_site.rb', line 9 def favicon_url @favicon_url end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'lib/ravelry/social_site.rb', line 9 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/ravelry/social_site.rb', line 9 def name @name end |