Skip to content

Instantly share code, notes, and snippets.

@dchandekstark
Last active December 17, 2015 11:09
Show Gist options
  • Save dchandekstark/5600285 to your computer and use it in GitHub Desktop.
Save dchandekstark/5600285 to your computer and use it in GitHub Desktop.
Extensions to Rubydora digital object and datastream APIs
ACTIVE = 'A'
INACTIVE = 'I'
DELETED = 'D'
def active?
dsState == ACTIVE
end
def inactive?
dsState == INACTIVE
end
def deleted?
dsState == DELETED
end
ACTIVE = 'A'
INACTIVE = 'I'
DELETED = 'D'
def active?
state == ACTIVE
end
def inactive?
state == INACTIVE
end
def deleted?
state == DELETED
end
@jeremyf
Copy link

jeremyf commented May 17, 2013

Looks reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment