Class: Wikisnakker::Sitelink
- Inherits:
-
Object
- Object
- Wikisnakker::Sitelink
- Defined in:
- lib/wikisnakker/sitelink.rb
Instance Attribute Summary collapse
-
#badges ⇒ Object
readonly
Returns the value of attribute badges.
-
#site ⇒ Object
readonly
Returns the value of attribute site.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(raw) ⇒ Sitelink
constructor
A new instance of Sitelink.
Constructor Details
#initialize(raw) ⇒ Sitelink
Returns a new instance of Sitelink.
7 8 9 10 11 |
# File 'lib/wikisnakker/sitelink.rb', line 7 def initialize(raw) @site = raw[:site] @title = raw[:title] @badges = raw[:badges] end |
Instance Attribute Details
#badges ⇒ Object (readonly)
Returns the value of attribute badges.
5 6 7 |
# File 'lib/wikisnakker/sitelink.rb', line 5 def badges @badges end |
#site ⇒ Object (readonly)
Returns the value of attribute site.
3 4 5 |
# File 'lib/wikisnakker/sitelink.rb', line 3 def site @site end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/wikisnakker/sitelink.rb', line 4 def title @title end |