Class: Pumi::Bot::Wikipedia::Article

Inherits:
Object
  • Object
show all
Defined in:
lib/pumi/bot/wikipedia/article.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client: Pumi::Wikipedia::Client.new) ⇒ Article

Returns a new instance of Article.



7
8
9
# File 'lib/pumi/bot/wikipedia/article.rb', line 7

def initialize(client: Pumi::Wikipedia::Client.new)
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



5
6
7
# File 'lib/pumi/bot/wikipedia/article.rb', line 5

def client
  @client
end