Created
May 24, 2015 16:23
-
-
Save pumpkincouture/2f3be77220a631a4c4d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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