Class: Hubspot::Property
- Defined in:
- lib/hubspot/property.rb
Overview
Properties from the object schema
Instance Method Summary collapse
-
#inspect ⇒ Object
:nocov:.
-
#read_only? ⇒ Boolean
:nocov:.
Instance Method Details
#inspect ⇒ Object
:nocov:
7 8 9 10 11 12 |
# File 'lib/hubspot/property.rb', line 7 def inspect included_keys = %i[name type fieldType hubspotDefined] filtered_hash = to_h.slice(*included_keys) formatted_attrs = filtered_hash.map { |k, v| "#{k}=#{v.inspect}" }.join(', ') "#<#{self.class} #{formatted_attrs}>" end |
#read_only? ⇒ Boolean
:nocov:
15 16 17 |
# File 'lib/hubspot/property.rb', line 15 def read_only? modificationMetadata['readOnlyValue'] == true end |