Class: SimpleGeolocator::IPAPIResponse::LOCATION_STRUCT

Inherits:
Struct
  • Object
show all
Defined in:
lib/simple_geolocator/ipapi_response.rb

Overview

A simple struct that stores the name and code for the location.

Instance Attribute Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



34
35
36
# File 'lib/simple_geolocator/ipapi_response.rb', line 34

def code
  @code
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



34
35
36
# File 'lib/simple_geolocator/ipapi_response.rb', line 34

def name
  @name
end