Code Monkey home page Code Monkey logo

ruby_api_calls's Introduction

ruby_api_calls

Simple Ruby API Call Assignment

This is a project by Nick Schwaderer; done in concert with the Viking Code School.

This application pulls from the power of the OpenWeatherMap API to give the user simple functionality through a few helpful methods.

To get started, open weatherman.rb and below the commented out line #USER INSTRUCTIONS put together your inputs. There is a commented out example in the code.

Set a new instance of the WeatherForecast class with my_instance = WeatherForecast.new("mytown,uk,5"). The first argument you pass into the method determines location, the second is an integer which determines how long into the future you want to forecast.

After that you can apply the following methods to the instance:

#today => Gives a brief forecast of today's weather. #tomorrow => Gives a brief forecast of tomorrow's weather. #hi_temps => Lists out the anticipated high temps for the number of days entered. #low_temps => Lists out the anticipated low temps for the number of days entered.

ruby_api_calls's People

Contributors

schwad avatar

Watchers

James Cloos 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.