capsulecrm-b 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/examples.rb +2 -3
- data/lib/capsulecrm/opportunity.rb +1 -0
- data/lib/capsulecrm/version.rb +1 -1
- metadata +3 -3
data/examples.rb
CHANGED
@@ -5,10 +5,9 @@ CapsuleCRM.account_name = "futureworkshops"
|
|
5
5
|
CapsuleCRM.api_token = ENV['CAPSULE_CRM_API_KEY']
|
6
6
|
CapsuleCRM.initialize!
|
7
7
|
|
8
|
-
oppo = CapsuleCRM::Opportunity.find(
|
8
|
+
oppo = CapsuleCRM::Opportunity.find(1053673)
|
9
9
|
puts oppo.party.name
|
10
|
-
puts oppo.
|
11
|
-
puts oppo.custom_fields[0].text
|
10
|
+
puts oppo.duration
|
12
11
|
|
13
12
|
# find by id
|
14
13
|
person = CapsuleCRM::Person.find 123
|
@@ -21,6 +21,7 @@ class CapsuleCRM::Opportunity < CapsuleCRM::Base
|
|
21
21
|
'currency' => 'currency',
|
22
22
|
'value' => 'value',
|
23
23
|
'durationBasis' => 'duration_basis',
|
24
|
+
'duration' => 'duration',
|
24
25
|
'expectedCloseDate' => 'expected_close_date',
|
25
26
|
'actualCloseDate' => 'actual_close_date',
|
26
27
|
'milestone' => 'milestone',
|
data/lib/capsulecrm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capsulecrm-b
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-02-06 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: httparty
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 1.8.
|
137
|
+
rubygems_version: 1.8.25
|
138
138
|
signing_key:
|
139
139
|
specification_version: 3
|
140
140
|
summary: CapsuleCRM API Gem
|