Method: ActionWebService::Struct#each_pair
- Defined in:
- lib/action_web_service/struct.rb
#each_pair(&block) ⇒ Object
Iterates through each member
36 37 38 39 40 |
# File 'lib/action_web_service/struct.rb', line 36 def each_pair(&block) self.class.members.each do |name, type| yield name, self.__send__(name) end end |