I have the following code:
class BookPrice attr_accessor :price def initialize(price) @price = price end def price_in_cents Integer(price*100 +
read_attribute is what you are looking for
read_attribute
def price @price = read_attribute(:price) end