Class: ONEAccess::DataObject::Country

Inherits:
Object
  • Object
show all
Extended by:
Serializable
Defined in:
lib/oneaccess/data_object/representer/global_region.rb,
lib/oneaccess/data_object/country.rb

Overview

declare country to avoid circular dependency rubocop:disable Style/ClassAndModuleChildren

Instance Attribute Summary collapse

Method Summary

Methods included from Serializable

from_json, represented_by

Instance Attribute Details

#codeObject

Returns the value of attribute code.



14
15
16
# File 'lib/oneaccess/data_object/country.rb', line 14

def code
  @code
end

#code3Object

Returns the value of attribute code3.



15
16
17
# File 'lib/oneaccess/data_object/country.rb', line 15

def code3
  @code3
end

#descriptionObject

Returns the value of attribute description.



16
17
18
# File 'lib/oneaccess/data_object/country.rb', line 16

def description
  @description
end

#global_regionObject

Returns the value of attribute global_region.



17
18
19
# File 'lib/oneaccess/data_object/country.rb', line 17

def global_region
  @global_region
end

#idObject

Returns the value of attribute id.



12
13
14
# File 'lib/oneaccess/data_object/country.rb', line 12

def id
  @id
end

#nameObject

Returns the value of attribute name.



13
14
15
# File 'lib/oneaccess/data_object/country.rb', line 13

def name
  @name
end

#regionsObject

Returns the value of attribute regions.



18
19
20
# File 'lib/oneaccess/data_object/country.rb', line 18

def regions
  @regions
end