class Exlibris::Primo::Tags
Manipulate a Primo
tags using Exlibris::Primo::Tags
tags = Tags.new.base_url!("http://primo.library.edu").institution!("PRIMO"). user_id!("USER_ID").record_id!("aleph0123456789") tag.my_tags #=> Array of Primo tags
Attributes
record_id[R]
user_id[R]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
Exlibris::Primo::WriteAttributes::new
# File lib/exlibris/primo/tags.rb, line 20 def initialize *args super end
Public Instance Methods
add_tag(tag)
click to toggle source
Call web service to add a tag to Primo
for the specified record
# File lib/exlibris/primo/tags.rb, line 58 def add_tag(tag) Exlibris::Primo::WebService::Request::AddTag.new(user_record_request_attributes.merge :value => tag).call reset_tags end
remove_tag(tag)
click to toggle source
Call web service to remove tag from Primo
for the specified record
# File lib/exlibris/primo/tags.rb, line 75 def remove_tag(tag) Exlibris::Primo::WebService::Request::RemoveTag.new(user_record_request_attributes.merge :value => tag).call reset_tags end