Skip to content

Instantly share code, notes, and snippets.

@dkubb
Created July 22, 2009 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dkubb/152102 to your computer and use it in GitHub Desktop.
Save dkubb/152102 to your computer and use it in GitHub Desktop.
DataMapper public API
== Interfaces
=== Finder Interface
+ #[]
+ #all
+ #at
- #fetch
+ #first
+ #first_or_create
+ #first_or_new
+ #get
+ #get!
+ #last
+ #reverse
+ #slice
- #values_at
- Enumerable
- #to_a
- #all?
- #any?
- #empty?
- #include?
- #member?
- #each
- #each_index
- #each_with_index
- #reverse_each
=== Initialize Interface
- .new
- .create
- .create!
=== Update/Destroy Interface
- #destroy
- #destroy!
- #update
- #update!
=== Save Interface
- #save
- #save!
=== Introspection Interface
- #properties
- #relationships
=== Copy Interface
- #copy
=== Reload Interface
- #reload
---------------------------------------------------------------------
== Concrete Classes
=== Model
- Finder Interface
- Initialize Interface
- Update/Destroy Interface
- Copy Interface
- Introspection Interface
=== Collection
- Finder Interface
- Initialize Interface
- Update/Destroy Interface
- Save Interface
- Copy Interface
- Reload Interface
- Introspection Interface
- Array
- #to_ary
- #[]=
- #<<
- #clear
- #collect!
- #concat
- #delete
- #delete_at
- #delete_if
- #insert
- #map!
- #pop
- #push
- #reject!
- #replace
- #reverse!
- #shift
- #slice!
- #sort!
- #unshift
- Set
- #union
- #intersection
- #difference
=== Resource
- Update/Destroy Interface
- Save Interface
- Copy Interface
- Reload Interface
- Introspection Interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment