Skip to content

Instantly share code, notes, and snippets.

@phuongdh
Created July 2, 2013 19:09
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 phuongdh/5912148 to your computer and use it in GitHub Desktop.
Save phuongdh/5912148 to your computer and use it in GitHub Desktop.
[8] pry(main)> mo = MediaObject.new
=> #<MediaObject pid:"", avalon_uploader:nil, avalon_publisher:nil, title:nil, alternative_title:[], translated_title:[], uniform_title:[], statement_of_responsibility:nil, creator:[], date_created:nil, date_issued:nil, copyright_date:nil, abstract:nil, note:[], format:nil, contributor:[], publisher:[], genre:[], subject:[], related_item:[], geographic_subject:[], temporal_subject:[], topical_subject:[], duration:nil, section_pid:[]>
[9] pry(main)> mo.DC.creator = "Adam"
=> "Adam"
[10] pry(main)> mo.DC.creator
=> ["Adam"]
@phuongdh
Copy link
Author

phuongdh commented Jul 3, 2013

Same as mo.avalon_uploader = "Adam"

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