#!/usr/local/bin/ruby require 'pp' class AnondArchive attr_reader :url, :year, :month def initialize(url="https://anond.hatelabo.jp/archive/", year, month) @url = url; @year = year; @month = month end end sample = AnondArchive.new("https://anond.hatelabo.jp/archive/", "2010", "08") puts sample.url puts sample.year puts sample.month