# File lib/rabl/builder.rb, line 139 def attribute(name, options = {}) return unless @_object && attribute_present?(name) && resolve_condition(options) attribute = data_object_attribute(name) name = create_key(options[:as] || name) @_result[name] = attribute end