Module: OBSWS::Mixin::Meta

Includes:
Util::String
Included in:
MetaObject
Defined in:
lib/obsws/mixin.rb

Instance Method Summary collapse

Methods included from Util::String

#camelcase, #snakecase

Instance Method Details

#make_field_methods(*params) ⇒ Object



6
7
8
9
10
# File 'lib/obsws/mixin.rb', line 6

def make_field_methods(*params)
  params.each do |param|
    define_singleton_method(snakecase(param.to_s)) { @resp[param] }
  end
end