Grape is a REST-like API framework for Ruby. It’s designed to run on Rack or complement existing web application frameworks such as Rails and Sinatra by providing a simple DSL to easily develop RESTful APIs.

Setting project with grape

Adding necessary gems for grape :-


A method is a reusable section of code written to perform a specific task in a program. Methods is uses to separate between one big chunk of code.

Methods are defined using the keyword def(short for "define"). Methods have three parts:

  1. The header, which includes the defkeyword, the name of…

According to google cron stands for “a command to an operating system or server for a job that is to be executed at a specified time.”

Cron is a daemon that runs on Linux and Unix environments that execute scheduled commands also known as cron jobs created by the crontab…

The previous part 1 was introduction and basic of ruby. This part is going to be about condition and looping statement along with array and hash .

Conditional Statement


Ruby’s if statement takes an expression, which is just a fancy word for something that has a value that evaluates to either true

The features of the object-oriented programming language include −

  • Inheritance
  • Data Encapsulation
  • Polymorphism
  • Data Abstraction

First of all what is Ruby Class ????

A class is a blueprint of data type. This doesn’t actually define any data, but it does define what the class name means, that is, what an…

old question solution

1-Tier,2-Tier, 3-Tier and n-Tier technology

Client/Sever architecture can be of different model based on the number of layers it holds.

1- Tier:- One tier architecture has all the layers such as Presentation, Business, Data Access layers in a single software package. Applications which handles all the three tiers such as MP3 player…

old question solution

Web Server

A Web server is a program that uses HTTP (Hypertext Transfer Protocol) to serve the files that form Web pages to users, in response to their requests, which are forwarded by their computers’ HTTP clients. Dedicated computers and appliances may be referred to as Web servers as…

old question solution

Software and it’s characteristic

Software are computer programs, it is a part of a computer system that consists of data or computer instructions, in contrast to the physical hardware from which the system is built.

Function of software:-

  1. to manage accessories
  2. to manage optimize resources [time, memory, money]
  3. to bridge organization…

Ranjan Bajracharya

MSP 2017. Graduation in computer science and information technology. Studying MBA.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store