lib/spnet/message.rb in spnet-0.1.0 vs lib/spnet/message.rb in spnet-0.1.1
- old
+ new
@@ -9,11 +9,11 @@
COMMAND = :messageTypeCommand
TYPES = [ CONTROL, COMMAND ]
HASHED_ARGS_SPECS = [
- Hashmake::HashedArg.new(:reqd => true, :key => :type, :type => Symbol, :validator => ->(a){ TYPES.include?(a) } ),
- Hashmake::HashedArg.new(:reqd => false, :key => :data, :type => Object, :default => nil),
+ Hashmake::ArgSpec.new(:reqd => true, :key => :type, :type => Symbol, :validator => ->(a){ TYPES.include?(a) } ),
+ Hashmake::ArgSpec.new(:reqd => false, :key => :data, :type => Object, :default => nil),
]
attr_accessor :data
attr_reader :type