lib/d2d/client.rb
# Outputs the configuration as a hash.  Useful for creating multiple
# similar configurations for different borrowing consortia.
# @return[Hash<Symbol, String] the attributes of this configuration
# as a hash.
Outputs the configuration as a hash.  Useful for creating multiple
similar configurations for different borrowing consortia.
Outputs the configuration as a hash . Useful for creating multiple similar configurations for different borrowing consortia .
def to_h
        @to_h ||= {
          api_key: api_key,
          partnership_id: partnership_id,
          base_url: base_url,
          library_symbol: library_symbol,
          patron_id: patron_id
        }
        Marshal.load(Marshal.dump(@to_h))
      end
def to_h @to_h ||= { api_key : api_key , partnership_id : partnership_id , base_url : base_url , library_symbol : library_symbol , patron_id : patron_id } Marshal . load ( Marshal . dump ( @to_h ) ) end
Outputs the configuration as a hash.
Outputs the configuration as a hash .
# always return a copy
return[Hash<Symbol,
String] the attributes of this configuration as a hash.
String ] the attributes of this configuration as a hash .