Class: Factbook::Codes::Code

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

Overview

todo: add notes (country affiliation) - why? why not??

Instance Attribute Summary collapse

Instance Attribute Details

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



13
14
15
# File 'lib/factbook-readers/codes.rb', line 13

def category
  @category
end

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



13
14
15
# File 'lib/factbook-readers/codes.rb', line 13

def code
  @code
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



13
14
15
# File 'lib/factbook-readers/codes.rb', line 13

def name
  @name
end

#regionObject

Returns the value of attribute region

Returns:

  • (Object)

    the current value of region



13
14
15
# File 'lib/factbook-readers/codes.rb', line 13

def region
  @region
end