Class: RwikiLinks::GetAuthor

Inherits:
Object
  • Object
show all
Defined in:
lib/rwiki_links/get_author.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(page, website) ⇒ GetAuthor

Returns a new instance of GetAuthor.



7
8
9
10
# File 'lib/rwiki_links/get_author.rb', line 7

def initialize(page, website)
  @page = page
  @website = website
end

Class Method Details

.callObject



5
# File 'lib/rwiki_links/get_author.rb', line 5

def self.call(...) = new(...).call

Instance Method Details

#callObject



12
13
14
# File 'lib/rwiki_links/get_author.rb', line 12

def call
  swap_author_first_name_with_last_name
end