lib/hubspot/resource.rb in ruby_hubspot_api-0.3.1 vs lib/hubspot/resource.rb in ruby_hubspot_api-0.3.2
- old
+ new
@@ -312,17 +312,12 @@
params: search_body,
resource_class: self,
method: :post
)
end
-
# rubocop:enable Metrics/MethodLength
- # The root of the api call. Mostly this will be "crm"
- # but you can override this to account for a different
- # object hierarchy
-
# Define the resource name based on the class
def resource_name
name = self.name.split('::').last.downcase
if name.end_with?('y')
name.gsub(/y$/, 'ies') # Company -> companies
@@ -337,9 +332,12 @@
[]
end
private
+ # The root of the api call. Mostly this will be "crm"
+ # but you can override this to account for a different
+ # object hierarchy
def api_root
'/crm/v3/objects'
end
def list_page_uri