Class: Allorails::Country

Inherits:
Base show all
Defined in:
lib/allorails/response/model.rb

Overview

Class providing object mapping of a country item

Instance Attribute Summary

Attributes inherited from Response::ApiMappingResponse

#xml

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods inherited from Response::ApiMappingResponse

#_verify, attribute_reader, #initialize, node_reader

Methods inherited from Response::ApiResponse

#_verify, #initialize

Constructor Details

This class inherits a constructor from Allorails::Base

Instance Method Details

#codeObject

Provides the country code

@return (string) country code (two characters)


48
# File 'lib/allorails/response/model.rb', line 48

attribute_reader :code

#nameObject

Provides the country name

@return (string) country name


52
# File 'lib/allorails/response/model.rb', line 52

attribute_reader :name