class LibTAD::Places::Country
Information about a country.
Attributes
id[R]
@return [String] The ISO 3166-1-alpha-2 country code. @see dev-test.timeanddate.com/docs/external-references#ISO3166 ISO3166
name[R]
@return [String] Full name of the country.
Public Class Methods
new(hash)
click to toggle source
# File lib/types/places/country.rb, line 14 def initialize(hash) @id = hash.fetch('id', nil) @name = hash.fetch('name', nil) end