lib/hubspot/form.rb in ruby_hubspot_api-0.3.2 vs lib/hubspot/form.rb in ruby_hubspot_api-0.3.3
- old
+ new
@@ -1,28 +1,32 @@
# frozen_string_literal: true
module Hubspot
class Form < Resource
- METADATA_FIELDS = %w[createdAt updatedAt archived].freeze
-
# :nocov:
def inspect
"#<#{self.class.name} " \
"@name=#{name}, " \
"@fieldGroups=#{respond_to?('fieldGroups') ? fieldGroups.size : '-'}>"
end
# :nocov:
class << self
+ private
+
def api_root
'/marketing/v3'
end
end
private
# dont convert (from string)
def extract_id(id)
id
+ end
+
+ def metadata_fields
+ %w[createdAt updatedAt archived].freeze
end
end
end