class ListOfCountries::State
Attributes
code[R]
name[R]
Public Class Methods
new(data)
click to toggle source
# File lib/list_of_countries/state.rb, line 8 def initialize(data) @name = data.fetch("name") @code = data.fetch("state_code") end