lib/hubspot/resource.rb in ruby_hubspot_api-0.2 vs lib/hubspot/resource.rb in ruby_hubspot_api-0.2.1.pre.1
- old
+ new
@@ -80,9 +80,17 @@
def custom_properties
properties.reject { |property| property['hubspotDefined'] }
end
+ def updatable_properties
+ properties.reject(&:read_only?)
+ end
+
+ def read_only_properties
+ properties.select(&:read_only?)
+ end
+
def property(property_name)
properties.detect { |prop| prop.name == property_name }
end
# Simplified search interface