Skip to content

Instantly share code, notes, and snippets.

@pumpkincouture
Created May 24, 2015 16:23
Show Gist options
  • Save pumpkincouture/2f3be77220a631a4c4d7 to your computer and use it in GitHub Desktop.
Save pumpkincouture/2f3be77220a631a4c4d7 to your computer and use it in GitHub Desktop.
class Patrons
def ==(other)
self.attributes == other.attributes
end
def active?
account_status != :inactive
end
attribute :account_status, Symbol
attribute :first_name, String
attribute :last_name, String
attribute :email, String
attribute :phone, String
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment