Class: Kountries::LookupByName

Inherits:
Object
  • Object
show all
Defined in:
lib/kountries/lookup_by_name.rb

Overview

lookup country by name

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ LookupByName

Returns a new instance of LookupByName.



10
11
12
# File 'lib/kountries/lookup_by_name.rb', line 10

def initialize(name)
  @name = name
end

Class Method Details

.call(name:) ⇒ Object



6
7
8
# File 'lib/kountries/lookup_by_name.rb', line 6

def self.call(name:)
  new(name).call
end

Instance Method Details

#callObject



14
15
16
# File 'lib/kountries/lookup_by_name.rb', line 14

def call
  country_lookup
end