Module: ONIX::Inflector

Included in:
Complexity, DiscountCoded, ProductIdentifier, RelatedProduct, WorkIdentifier
Defined in:
lib/onix/inflector.rb

Instance Method Summary collapse

Instance Method Details

#attributesObject



10
11
12
# File 'lib/onix/inflector.rb', line 10

def attributes
  public_methods.map {|meth| meth.match(/^(?!roxml|taguri|=)(.+)=$/) ? $1 : nil }.compact
end

#initialize(options = {}) ⇒ Object



6
7
8
# File 'lib/onix/inflector.rb', line 6

def initialize(options = {})
  initialize_attributes(options)
end