Class: Factbook::PageInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/factbook-readers/page_info.rb

Overview

was before 2021 (when using html page scrapping) PageInfo = Struct.new( :country_code,

:country_name,
:country_affiliation,
:region_code,
:region_name,
:last_updated )

Instance Attribute Summary collapse

Instance Attribute Details

#country_codeObject

Returns the value of attribute country_code

Returns:

  • (Object)

    the current value of country_code



16
17
18
# File 'lib/factbook-readers/page_info.rb', line 16

def country_code
  @country_code
end

#country_nameObject

Returns the value of attribute country_name

Returns:

  • (Object)

    the current value of country_name



16
17
18
# File 'lib/factbook-readers/page_info.rb', line 16

def country_name
  @country_name
end

#publishedObject

Returns the value of attribute published

Returns:

  • (Object)

    the current value of published



16
17
18
# File 'lib/factbook-readers/page_info.rb', line 16

def published
  @published
end

#region_nameObject

Returns the value of attribute region_name

Returns:

  • (Object)

    the current value of region_name



16
17
18
# File 'lib/factbook-readers/page_info.rb', line 16

def region_name
  @region_name
end

#updatedObject

Returns the value of attribute updated

Returns:

  • (Object)

    the current value of updated



16
17
18
# File 'lib/factbook-readers/page_info.rb', line 16

def updated
  @updated
end