Method: Chain::ResponseObject#to_h
- Defined in:
- lib/chain/response_object.rb
#to_h ⇒ Object
13 14 15 16 17 18 |
# File 'lib/chain/response_object.rb', line 13 def to_h self.class.attrib_opts.keys.reduce({}) do |memo, name| memo[name] = instance_variable_get("@#{name}") memo end end |