Class: Hubspot::DealProperties

Inherits:
Properties show all
Defined in:
lib/hubspot/deal_properties.rb

Constant Summary collapse

ALL_PROPERTIES_PATH =
'/deals/v1/properties'
ALL_GROUPS_PATH =
'/deals/v1/groups'
CREATE_PROPERTY_PATH =
'/deals/v1/properties/'
UPDATE_PROPERTY_PATH =
'/deals/v1/properties/named/:property_name'
DELETE_PROPERTY_PATH =
'/deals/v1/properties/named/:property_name'
CREATE_GROUP_PATH =
'/deals/v1/groups/'
UPDATE_GROUP_PATH =
'/deals/v1/groups/named/:group_name'
DELETE_GROUP_PATH =
'/deals/v1/groups/named/:group_name'

Constants inherited from Properties

Properties::DEFAULT_PROPERTY, Properties::PROPERTY_SPECS

Class Method Summary collapse

Class Method Details

.add_default_parameters(opts = {}) ⇒ Object



14
15
16
# File 'lib/hubspot/deal_properties.rb', line 14

def add_default_parameters(opts={})
  superclass.add_default_parameters(opts)
end

.all(opts = {}, filter = {}) ⇒ Object



18
19
20
# File 'lib/hubspot/deal_properties.rb', line 18

def all(opts={}, filter={})
  superclass.all(ALL_PROPERTIES_PATH, opts, filter)
end

.create!(params = {}) ⇒ Object



26
27
28
# File 'lib/hubspot/deal_properties.rb', line 26

def create!(params={})
  superclass.create!(CREATE_PROPERTY_PATH, params)
end

.create_group!(params = {}) ⇒ Object



38
39
40
# File 'lib/hubspot/deal_properties.rb', line 38

def create_group!(params={})
  superclass.create_group!(CREATE_GROUP_PATH, params)
end

.delete!(property_name) ⇒ Object



34
35
36
# File 'lib/hubspot/deal_properties.rb', line 34

def delete!(property_name)
  superclass.delete!(DELETE_PROPERTY_PATH, property_name)
end

.delete_group!(group_name) ⇒ Object



46
47
48
# File 'lib/hubspot/deal_properties.rb', line 46

def delete_group!(group_name)
  superclass.delete_group!(DELETE_GROUP_PATH, group_name)
end

.groups(opts = {}, filter = {}) ⇒ Object



22
23
24
# File 'lib/hubspot/deal_properties.rb', line 22

def groups(opts={}, filter={})
  superclass.groups(ALL_GROUPS_PATH, opts, filter)
end

.same?(src, dst) ⇒ Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/hubspot/deal_properties.rb', line 50

def same?(src, dst)
  superclass.same?(src, dst)
end

.update!(property_name, params = {}) ⇒ Object



30
31
32
# File 'lib/hubspot/deal_properties.rb', line 30

def update!(property_name, params={})
  superclass.update!(UPDATE_PROPERTY_PATH, property_name, params)
end

.update_group!(group_name, params = {}) ⇒ Object



42
43
44
# File 'lib/hubspot/deal_properties.rb', line 42

def update_group!(group_name, params={})
  superclass.update_group!(UPDATE_GROUP_PATH, group_name, params)
end

.valid_params(params) ⇒ Object



54
55
56
# File 'lib/hubspot/deal_properties.rb', line 54

def valid_params(params)
  superclass.valid_params(params)
end