delivery-service | Создать базовый класс Transport c 3 атрибутами

 by   rodionme Ruby Version: Current License: No License

kandi X-RAY | Delivery Service Summary

kandi X-RAY | Delivery Service Summary

Delivery Service is a Ruby library. Delivery Service has no bugs, it has no vulnerabilities and it has low support. You can download it from GitLab.

Создать базовый класс Transport c 3 атрибутами (max_weight, speed и available) и методом delivery_time который в аргументах получает расстояние доставки и возвращает время доставки. Создать класс Bike который наследует класс Transport. Каждый велосипед может двигаться со скоростью 10 км/ч и может везти посылки до 10 кг. Также у велосипеда есть уникальное свойство max_distance равное 30 км. Создать класс Car который наследует класс Transport. Каждая машина может двигаться со скоростью 50 км/ч и может везти посылки до 100 кг. Также у машины есть уникальное свойство регистрационный номер. Создать класс DeliveryService который управляет доставками. Парк службы доставки имеет несколько велосипедов и машин (количество определяете сами). Создать 2 метода для этого класса. Первый по параметрам доставки (вес и дистанция) находит подходящий транспорт для доставки. Второй метод подтверждает доставку. Расширить класс Transport чтобы объекты этого класса можно было сравнивать по скорости доставки 1 кг посылки.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Delivery Service has a low active ecosystem.
              It has 0 star(s) with 0 fork(s). There are no watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              Delivery Service has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of Delivery Service is current.

            kandi-Quality Quality

              Delivery Service has no bugs reported.

            kandi-Security Security

              Delivery Service has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              Delivery Service does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              Delivery Service releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of delivery-service
            Get all kandi verified functions for this library.

            Delivery Service Key Features

            No Key Features are available at this moment for Delivery Service.

            Delivery Service Examples and Code Snippets

            No Code Snippets are available at this moment for Delivery Service.

            Community Discussions

            No Community Discussions are available at this moment for Delivery Service.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Delivery Service

            You can download it from GitLab.
            On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.

            Support

            For any new features, suggestions and bugs create an issue on GitLab. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://gitlab.com/rodionme/delivery-service.git

          • sshUrl

            git@gitlab.com:rodionme/delivery-service.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link