lib/random_data/locations.rb in random_data-1.5.2 vs lib/random_data/locations.rb in random_data-1.6.0

- old
+ new

@@ -76,12 +76,12 @@ ["Oregon", "OR"], ["Pennsylvania", "PA"], ["Rhode Island", "RI"], ["South Carolina", "SC"], ["South Dakota", "SD"], ["Tennessee", "TN"], ["Texas", "TX"], ["Utah", "UT"], ["Virginia", "VA"], ["Vermont", "VT"], ["Washington", "WA"], ["Wisconsin", "WI"], ["West Virginia", "WV"], ["Wyoming", "WY"]] # Returns a state 2-character abbreviation - # Random.state = "IL" + # Random.state_code = "IL" - def state + def state_code @@us_states.rand[1] end # Returns a full state name #Random.state_full = "Texas"