Coder Social home page Coder Social logo

geography-brazilianstates's Introduction

NAME

Geography::BrazilianStates - get information of Brazilian States

SYNOPSIS

use Geography::BrazilianStates;

Geography::BrazilianStates->states;
# => get all states

Geography::BrazilianStates->abbreviations;
# => get all abbreviations

Geography::BrazilianStates->capitals;
# => get all capitals

Geography::BrazilianStates->regions;
# => get all regions

Geography::BrazilianStates->abbreviation('Amazonas');
# => 'AM'
Geography::BrazilianStates->abbreviation('AM');
# => 'Amazonas'

Geography::BrazilianStates->capital('Amazonas');
# => 'Manaus'
Geography::BrazilianStates->capital('Manaus');
# => 'Amazonas'

Geography::BrazilianStates->region('Amazonas');
# => 'Norte'
Geography::BrazilianStates->region('Norte');
# => qw(Acre Amapá Amazonas Pará Rondônia Roraima Tocantins)

Geography::BrazilianStates->states_all;
# => get all states with full information as ArrayRef

DESCRIPTION

This module provides you Brazilian States information like name, abbreviation, capital, and region itself.

Class Methods

states

@states = Geography::BrazilianStates->states;

get all states

abbreviations

@abbreviations = Geography::BrazilianStates->abbreviations;

get all abbreviations

capitals

@capitals = Geography::BrazilianStates->capitals;

get all capitals

regions

@regions = Geography::BrazilianStates->regions;

get all regions

abbreviation

Geography::BrazilianStates->abbreviation('Amazonas');
# => 'AM'
Geography::BrazilianStates->abbreviation('AM');
# => 'Amazonas'

capital

Geography::BrazilianStates->capital('Amazonas');
# => 'Manaus'
Geography::BrazilianStates->capital('Manaus');
# => 'Amazonas'

region

Geography::BrazilianStates->region('Amazonas');
# => 'Norte'
Geography::BrazilianStates->region('Norte');
# => qw(Acre Amapá Amazonas Pará Rondônia Roraima Tocantins)

states_all

Geography::BrazilianStates->states_all;
# => get all states with full information as ArrayRef

LICENSE

Copyright (C) yuzoiwasaki.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

yuzoiwasaki [email protected]

geography-brazilianstates's People

Watchers

James Cloos avatar Yuzo Iwasaki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.