lib/unit-ruby/util/api_resource.rb
# Represents this resource's attributes
#
# @return [Hash] Representation of this resource's attributes as a hash
Represents this resource's attributes
Represents this resource ' s attributes
def attributes
        self.class.schema.attributes.each_with_object({}) do |schema_attribute, h|
          h[schema_attribute.name] = send(schema_attribute.name)
        end
      end
def attributes self . class . schema . attributes . each_with_object ( { } ) do | schema_attribute , h | h [ schema_attribute . name ] = send ( schema_attribute . name ) end end
Represents this resource's attributes
Represents this resource ' s attributes
Representation of this resource's attributes as a hash
Representation of this resource ' s attributes as a hash
Hash