lib/d2d/client/response.rb
def to_h
        Hash[ATTRS.map do |attr|
          if attr.to_s == 'permission'
            [attr.to_s, permission.to_h]
          else
            [attr.to_s, instance_variable_get("@#{attr}")]
          end
        end]
      end
# Converts this instance to a hash in preparation
# for serialization
Converts this instance to a hash in preparation
for serialization
Converts this instance to a hash in preparation for serialization
def to_h
        Hash[ATTRS.map do |attr|
          if attr.to_s == 'permission'
            [attr.to_s, permission.to_h]
          else
            [attr.to_s, instance_variable_get("@#{attr}")]
          end
        end]
      end
def to_h Hash [ ATTRS . map do | attr | if attr . to_s == 'permission' [ attr . to_s , permission . to_h ] else [ attr . to_s , instance_variable_get ( "@#{attr}" ) ] end end ] end
Converts this instance to a hash in preparation
for serialization
Converts this instance to a hash in preparation for serialization