Class: Wikisnakker::Sitelink

Inherits:
Object
  • Object
show all
Defined in:
lib/wikisnakker/sitelink.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#badgesObject (readonly)

Returns the value of attribute badges.



5
6
7
# File 'lib/wikisnakker/sitelink.rb', line 5

def badges
  @badges
end

#siteObject (readonly)

Returns the value of attribute site.



3
4
5
# File 'lib/wikisnakker/sitelink.rb', line 3

def site
  @site
end

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'lib/wikisnakker/sitelink.rb', line 4

def title
  @title
end