Class: HubspotClient::Model::Property
- Inherits:
-
Object
- Object
- HubspotClient::Model::Property
- Defined in:
- lib/hubspot_client/model/property.rb
Class Method Summary collapse
Class Method Details
.all_for(object_type) ⇒ Object
6 7 8 |
# File 'lib/hubspot_client/model/property.rb', line 6 def self.all_for(object_type) HubspotClient::Client::Properties.new.for(object_type) end |
.writable_property_names_for(object_type) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/hubspot_client/model/property.rb', line 10 def self.writable_property_names_for(object_type) readonly_properties = all_for(object_type)['results'].reject do |property| property['modificationMetadata']['readOnlyValue'] == true end readonly_properties.map { |property| property['name'].to_sym } end |