Module: Zanox::Product

Extended by:
Item
Includes:
Item
Defined in:
lib/zanox.rb

Instance Attribute Summary

Attributes included from Item

#id

Class Method Summary collapse

Methods included from Item

find, find_every, find_other, new

Class Method Details

.is_key?(id) ⇒ Boolean

Returns:

  • (Boolean)


337
338
339
# File 'lib/zanox.rb', line 337

def self.is_key?(id)
  id.to_s[/[0-9A-Fa-f]{32}/] ? true : false
end

.key_symbolObject



329
330
331
# File 'lib/zanox.rb', line 329

def self.key_symbol
  :zupId
end

.pluralizeObject



333
334
335
# File 'lib/zanox.rb', line 333

def self.pluralize
  "Products"
end