Class: LUSI::API::Country::Nationality

Inherits:
Country show all
Defined in:
lib/lusi_api/country.rb

Overview

Represents a nationality in the LUSI API

See Also:

Instance Attribute Summary

Attributes inherited from Country

#iso_alpha2_code

Attributes inherited from LUSI::API::Core::BasicCode

#description, #identity

Class Method Summary collapse

Methods inherited from Country

#initialize, #to_s

Methods inherited from LUSI::API::Core::BasicCode

#initialize, #to_s

Constructor Details

This class inherits a constructor from LUSI::API::Country::Country

Class Method Details

.get_instance(api = nil, lookup = nil, iso_alpha2_code: nil, **kwargs) {|obj| ... } ⇒ Array<Nationality>?

Returns Nationality instances matching the specified parameters

Parameters:

  • api (LUSI::API::Core::API) (defaults to: nil)

    the LUSI API instance

  • lookup (LUSI::API::Core::Lookup::LookupService, nil) (defaults to: nil)

    the lookup service for object resolution

  • identity (String, nil)

    the identity to search for

  • description (String, nil)

    the description to search for

  • iso_alpha2_code (String, nil) (defaults to: nil)

    the ISO alpha-2 code to search for

Yields:

  • (obj)

    Passes the Nationality instance to the block

Yield Parameters:

Returns:

  • (Array<Nationality>, nil)

    the matching Nationality instances



90
91
92
93
# File 'lib/lusi_api/country.rb', line 90

def self.get_instance(api = nil, lookup = nil, iso_alpha2_code: nil, **kwargs)
  super(api, lookup, 'LUSIReference', 'Lookup.asmx', 'GetNationalities', 'xmlns:Nationality',
        iso_alpha2_code: iso_alpha2_code, **kwargs)
end