Git Product home page Git Product logo

quiniela_3's People

Contributors

jd-erreape avatar

Watchers

 avatar  avatar

quiniela_3's Issues

[Task] Create a Round Matches retriever

We would like to implement a new method #matches within our Quiniela::Parsers::Round that will return a multidimensional array containing all the matches and where each of the elements is an array with the home and away team.

  • Create Quiniela::Parsers::Round#matches that will provide a method #number with the current round number
  • Provide an integration test we can use to verify the third party service is fine using VCR gem

[Fix] Fix time dependent spec

We have a spec failing because it depends of Time.now we will provide a fixed time for it so it doesn’t fail anymore

[Task] Install HTTParty and build a client to fetch the current Quiniela's round page

We would need to install HTTParty as the way of making external HTTP requests.

Apart from that, we would like to be able to fetch the current Quiniela's round from https://juegos.loteriasyapuestas.es/jugar/la-quiniela/apuesta/?access=headercms&lang=es We will use this content later to retrieve the current round number and the matches / teams for the current round.

Tasks:

  • Add HTTParty as a dependency
  • Create a client that fetches the specified page
  • Create an integration test that verifies that our client is fetching proper content

[Task] Build a Results parser that returns the results for a given round

We would like to create Quiniela::Parsers::Results class with a #round method that will provide the ability to return the results for a given round provided as an integer.

The format of the results will be a multidimensional array with 15 elements where each of the elements will be an array with:

[HomeTeam, AwayTeam, HomeResult, AwayResult]

The order of the elements in the array will be the same order they appear on the current Quiniela.

In case we try to provide results for a round that doesn’t exist, we will raise a Quiniela::Parsers::Result::NotFound error

[Task] Create a round number retriever

We would need to create something like Quiniela::Retrievers::Round that will be in charge of providing the infoof the current round the quiniela is on, for now we will just retrieve the number but probably we would add later a method matches that will return an array with the 15 matches of the current round

We need to:

  • Create Quiniela::Retrievers::Round that will provide a method #number with the current round number
  • Provide an integration test we can use to verify the third party service is fine using VCR gem

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.