module Exlibris::Primo::WebService::Request::Client::ClassAttributes

Public Instance Methods

client() click to toggle source
# File lib/exlibris/primo/web_service/request/base/client.rb, line 13
def client
  @client ||= (has_client?) ? name.demodulize.underscore.to_sym :
    (self.superclass.respond_to? :client) ?
      self.superclass.client : nil
end

Protected Instance Methods

has_client() click to toggle source

Tell the class it hold the client symbol

# File lib/exlibris/primo/web_service/request/base/client.rb, line 26
def has_client
  @has_client = true
end
has_client?() click to toggle source

Returns whether this class has a client symbol

# File lib/exlibris/primo/web_service/request/base/client.rb, line 20
def has_client?
  @has_client ||= false
end