Module: BatchBook
- Defined in:
- lib/batchbook.rb
Overview
Ruby lib for working with the BatchBook’s API’s XML interface. Set the account name and authentication token, using the Batchbook API Key found in your account settings, and you’re ready to roll.
demo.batchbook.com BatchBook.account = ‘demo’ BatchBook.token = ‘XYZ’
Defined Under Namespace
Classes: Activities, Affiliation, Base, Comment, Communication, Company, Deal, Error, List, Location, Person, Record, SuperTag, Tag, Todo, User
Constant Summary collapse
- VERSION =
'1.0.4'
Class Attribute Summary collapse
-
.account ⇒ Object
Returns the value of attribute account.
-
.domain_format ⇒ Object
Returns the value of attribute domain_format.
-
.host_format ⇒ Object
Returns the value of attribute host_format.
-
.path ⇒ Object
Returns the value of attribute path.
-
.protocol ⇒ Object
Returns the value of attribute protocol.
-
.site_format ⇒ Object
Returns the value of attribute site_format.
-
.token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
Class Attribute Details
.account ⇒ Object
Returns the value of attribute account.
19 20 21 |
# File 'lib/batchbook.rb', line 19 def account @account end |
.domain_format ⇒ Object
Returns the value of attribute domain_format.
18 19 20 |
# File 'lib/batchbook.rb', line 18 def domain_format @domain_format end |
.host_format ⇒ Object
Returns the value of attribute host_format.
18 19 20 |
# File 'lib/batchbook.rb', line 18 def host_format @host_format end |
.path ⇒ Object
Returns the value of attribute path.
18 19 20 |
# File 'lib/batchbook.rb', line 18 def path @path end |
.protocol ⇒ Object
Returns the value of attribute protocol.
18 19 20 |
# File 'lib/batchbook.rb', line 18 def protocol @protocol end |
.site_format ⇒ Object
Returns the value of attribute site_format.
18 19 20 |
# File 'lib/batchbook.rb', line 18 def site_format @site_format end |
.token ⇒ Object
Returns the value of attribute token.
19 20 21 |
# File 'lib/batchbook.rb', line 19 def token @token end |
Class Method Details
.resources ⇒ Object
42 43 44 |
# File 'lib/batchbook.rb', line 42 def resources @resources ||= [] end |
.site=(value) ⇒ Object
36 37 38 39 40 |
# File 'lib/batchbook.rb', line 36 def site=(value) resources.each do |r| r.site = value end end |