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'
PROPERTY_PATH =
'/properties/v1/deals/properties/named/:property_name'
GROUP_PATH =
'/properties/v1/deals/groups/named/:group_name'
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



16
17
18
# File 'lib/hubspot/deal_properties.rb', line 16

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

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



20
21
22
# File 'lib/hubspot/deal_properties.rb', line 20

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

.create!(params = {}) ⇒ Object



36
37
38
# File 'lib/hubspot/deal_properties.rb', line 36

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

.create_group!(params = {}) ⇒ Object



48
49
50
# File 'lib/hubspot/deal_properties.rb', line 48

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

.delete!(property_name) ⇒ Object



44
45
46
# File 'lib/hubspot/deal_properties.rb', line 44

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

.delete_group!(group_name) ⇒ Object



56
57
58
# File 'lib/hubspot/deal_properties.rb', line 56

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

.find(property_name, opts = {}) ⇒ Object



24
25
26
# File 'lib/hubspot/deal_properties.rb', line 24

def find(property_name, opts={})
  superclass.find(PROPERTY_PATH, property_name, opts)
end

.find_group(group_name, opts = {}) ⇒ Object



32
33
34
# File 'lib/hubspot/deal_properties.rb', line 32

def find_group(group_name, opts={})
  superclass.find_group(GROUP_PATH, group_name, opts)
end

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



28
29
30
# File 'lib/hubspot/deal_properties.rb', line 28

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

.same?(src, dst) ⇒ Boolean

Returns:

  • (Boolean)


60
61
62
# File 'lib/hubspot/deal_properties.rb', line 60

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

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



40
41
42
# File 'lib/hubspot/deal_properties.rb', line 40

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

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



52
53
54
# File 'lib/hubspot/deal_properties.rb', line 52

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

.valid_params(params) ⇒ Object



64
65
66
# File 'lib/hubspot/deal_properties.rb', line 64

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