lib/crunchbase/models/concerns/entity.rb in crunchbase4-0.1.5 vs lib/crunchbase/models/concerns/entity.rb in crunchbase4-0.1.6

- old
+ new

@@ -10,11 +10,11 @@ class Entity include ::Crunchbase::Utilities::Response include Mappings def fields - field_ids.map(&:to_sym) + field_ids.concat(custom_fields).map(&:to_sym) end def parse_response(response, request_field_ids = [], cards = []) extract_fields = (request_field_ids.empty? ? field_ids : request_field_ids) @@ -40,9 +40,14 @@ end end def as_json fields.each_with_object({}) { |item, hash| hash[item] = send(item) } + end + + private + def custom_fields + [] end end end end