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

Class Method Summary collapse

Class Attribute Details

.accountObject

Returns the value of attribute account.



19
20
21
# File 'lib/batchbook.rb', line 19

def 
  @account
end

.domain_formatObject

Returns the value of attribute domain_format.



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

def domain_format
  @domain_format
end

.host_formatObject

Returns the value of attribute host_format.



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

def host_format
  @host_format
end

.pathObject

Returns the value of attribute path.



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

def path
  @path
end

.protocolObject

Returns the value of attribute protocol.



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

def protocol
  @protocol
end

.site_formatObject

Returns the value of attribute site_format.



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

def site_format
  @site_format
end

.tokenObject

Returns the value of attribute token.



19
20
21
# File 'lib/batchbook.rb', line 19

def token
  @token
end

Class Method Details

.resourcesObject



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