class DTK::Client::Operation::Args
Public Class Methods
convert(ruby_hash_or_args)
click to toggle source
# File lib/client/operation_args.rb, line 25 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/operation_args.rb, line 21 def initialize(hash = {}) replace(hash) end
Public Instance Methods
required(key)
click to toggle source
# File lib/client/operation_args.rb, line 29 def required(key) if has_key?(key) self[key] else raise Error, "Args object missing the key '#{key}'" end end