class DTK::Network::Client::Args

Public Class Methods

convert(ruby_hash_or_args) click to toggle source
# File lib/client/args.rb, line 7
def self.convert(ruby_hash_or_args)
  ruby_hash_or_args.kind_of?(Args) ? ruby_hash_or_args : new(ruby_hash_or_args)
end
new(hash = {}) click to toggle source
# File lib/client/args.rb, line 3
def initialize(hash = {})
  replace(hash)
end

Public Instance Methods

required(key) click to toggle source
# File lib/client/args.rb, line 11
def required(key)
  if has_key?(key)
    self[key]
  else
    raise "Args object missing the key '#{key}'"
  end
end