Sha256: a89d6bac7a43c73f23af46ad0bb995c07555654c2cac2cc6176870df470ecca9
Contents?: true
Size: 1.69 KB
Versions: 11
Compression:
Stored size: 1.69 KB
Contents
module Hubspot class CompanyProperties < Properties ALL_PROPERTIES_PATH = '/companies/v2/properties' ALL_GROUPS_PATH = '/companies/v2/groups' CREATE_PROPERTY_PATH = '/companies/v2/properties/' UPDATE_PROPERTY_PATH = '/companies/v2/properties/named/:property_name' DELETE_PROPERTY_PATH = '/companies/v2/properties/named/:property_name' CREATE_GROUP_PATH = '/companies/v2/groups/' UPDATE_GROUP_PATH = '/companies/v2/groups/named/:group_name' DELETE_GROUP_PATH = '/companies/v2/groups/named/:group_name' class << self def add_default_parameters(opts={}) superclass.add_default_parameters(opts) end def all(opts={}, filter={}) superclass.all(ALL_PROPERTIES_PATH, opts, filter) end def groups(opts={}, filter={}) superclass.groups(ALL_GROUPS_PATH, opts, filter) end def create!(params={}) superclass.create!(CREATE_PROPERTY_PATH, params) end def update!(property_name, params={}) superclass.update!(UPDATE_PROPERTY_PATH, property_name, params) end def delete!(property_name) superclass.delete!(DELETE_PROPERTY_PATH, property_name) end def create_group!(params={}) superclass.create_group!(CREATE_GROUP_PATH, params) end def update_group!(group_name, params={}) superclass.update_group!(UPDATE_GROUP_PATH, group_name, params) end def delete_group!(group_name) superclass.delete_group!(DELETE_GROUP_PATH, group_name) end def same?(src, dst) superclass.same?(src, dst) end def valid_params(params) superclass.valid_params(params) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems