Class: Hubspot::Property

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/hubspot/property.rb

Overview

Properties from the object schema

Instance Method Summary collapse

Instance Method Details

#inspectObject

: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:

Returns:

  • (Boolean)


15
16
17
# File 'lib/hubspot/property.rb', line 15

def read_only?
  ['readOnlyValue'] == true
end