module FedoraLens::AttributeMethods::Read
Constants
- ReaderMethodCache
Public Instance Methods
read_attribute(attr_name)
click to toggle source
Returns the value of the attribute identified by attr_name
after it has been typecast (for example, “2004-12-12” in a date column is cast to a date object, like Date.new(2004, 12, 12)).
# File lib/fedora_lens/attribute_methods/read.rb, line 39 def read_attribute(attr_name) name = attr_name.to_s @attributes.fetch(name, nil) end
Private Instance Methods
attribute(attribute_name)
click to toggle source
# File lib/fedora_lens/attribute_methods/read.rb, line 45 def attribute(attribute_name) read_attribute(attribute_name) end