Module: BigPanda::Helper
- Included in:
- Client
- Defined in:
- lib/big_panda/helper.rb
Instance Method Summary collapse
Instance Method Details
#check_mandatory_options(options = {}, mandatory_options = []) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/big_panda/helper.rb', line 3 def (={}, =[]) .each do |option| if [option].nil? raise ArgumentError.new("option #{option} is mandatory") end end true end |