Explaining Object Orientated Ruby Concepts: class methods, instance methods and self

class GetBored
attr_accessor :text, :createdAt, :_id
Class GetBored
def self.bored
puts ‘class method’




Welcome all

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Create an ETL solution using AWS Step Functions, Lambda and Glue

Build Your First Web Page

(Part 2) What you need to know about methods and status codes from the HTTP Protocol

Optimum HTB walkthrough without Metasploit

Show Your DeviantArt in Augmented Reality!

Alexa Skill with Medium API

I have curve fitted an histogram using the gaussian function

Logging Algorithmic Experiments in Python

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
Ting Z.

Ting Z.

Welcome all

More from Medium

Get starts with JavaScript, Git, NoSQL

Working With Ex

Event Handling

A reflection on Map and Object in JS