Class: Kountries::LookupByName
- Inherits:
-
Object
- Object
- Kountries::LookupByName
- Defined in:
- lib/kountries/lookup_by_name.rb
Overview
lookup country by name
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(name) ⇒ LookupByName
constructor
A new instance of LookupByName.
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
#call ⇒ Object
14 15 16 |
# File 'lib/kountries/lookup_by_name.rb', line 14 def call country_lookup end |