Method: ContentfulModel::Configuration#to_hash

Defined in:
lib/contentful_model.rb

#to_hashHash

Return the Configuration object as a hash, with symbols as keys.

Returns:

  • (Hash)


53
54
55
# File 'lib/contentful_model.rb', line 53

def to_hash
  Hash[instance_variables.map { |name| [name.to_s.delete('@').to_sym, instance_variable_get(name)] }]
end