Skip to content

Instantly share code, notes, and snippets.

@miketierney
Last active December 12, 2015 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miketierney/4740896 to your computer and use it in GitHub Desktop.
Save miketierney/4740896 to your computer and use it in GitHub Desktop.
# Example of Subscriber.all (assumes you've defined the Subscriber class):
irb > Subscriber.bootstrap("./subscribers.yml")
irb > Subscriber.all
=> [#<Subscriber:0x007ffaf1ad85b0 @first_name="Mike", @id=1, @last_name="Tierney">, #<Subscriber:0x007ffaf29f07a0 @first_name="Martin", @id=2, @last_name="Arrowsmith">]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment