Last active
December 17, 2015 11:09
-
-
Save dchandekstark/5600285 to your computer and use it in GitHub Desktop.
Extensions to Rubydora digital object and datastream APIs
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
ACTIVE = 'A' | |
INACTIVE = 'I' | |
DELETED = 'D' | |
def active? | |
dsState == ACTIVE | |
end | |
def inactive? | |
dsState == INACTIVE | |
end | |
def deleted? | |
dsState == DELETED | |
end |
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
ACTIVE = 'A' | |
INACTIVE = 'I' | |
DELETED = 'D' | |
def active? | |
state == ACTIVE | |
end | |
def inactive? | |
state == INACTIVE | |
end | |
def deleted? | |
state == DELETED | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks reasonable.