Sha256: 0e1a1e4b56c902ee0f72413219d874a75212cd8f78a125f8638d662b65aa53e4
Contents?: true
Size: 803 Bytes
Versions: 2
Compression:
Stored size: 803 Bytes
Contents
class User include Aqua::Tank attr_accessor :name, # An array of strings or a hash of strings :created_at,# Time :dob, # Date :username, # simple string :log, # an Aquatic Object :password, # hidden value :grab_bag # non Aquatic Object hide_attributes :password def initialize( hash={} ) hash.each do |key, value| send( "#{key}=", value ) end end # convenience methods for inspection during testing # ------------------------------------------------- def simple_classes _simple_classes end # for testing whether attributse are hidden def visible_attr _storable_attributes end # for testing class level configuration options def self.aquatic_options _aqua_opts end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
baccigalupi-aqua-0.1.1 | spec/object/object_fixtures/user.rb |
baccigalupi-aqua-0.1.2 | spec/object/object_fixtures/user.rb |