attr_accessor strongly typed Ruby on Rails
Just wondering if anyone can shed some light on the basics of getter setters in Ruby on Rails with a view on strongly typed. I am very new to ruby on rails and predominately have a good understanding of .NET. For example, let's consider we have a .net class called Person class Person { public string Firstname{get;set;} public string Lastname{get;set;} public Address HomeAddress{get;set;} } class Address { public string AddressLine1{get;set;} public string City{get;set;} public string Country{get;set;} } In Ruby, I would write this as class Person attr_accessor :FirstName attr_accessor