Class: DataComApi::Responses::CompanyContactCount

Inherits:
Base
  • Object
show all
Defined in:
lib/data-com-api/responses/company_contact_count.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client, company_id, received_options) ⇒ CompanyContactCount

Returns a new instance of CompanyContactCount.



11
12
13
14
15
16
17
18
19
20
# File 'lib/data-com-api/responses/company_contact_count.rb', line 11

def initialize(api_client, company_id, received_options)
  @options     = received_options
  @id          = company_id
  @levels      = []
  @departments = []
  @url         = nil
  @size        = nil
  @requested   = false
  super(api_client)
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



9
10
11
# File 'lib/data-com-api/responses/company_contact_count.rb', line 9

def id
  @id
end

Instance Method Details

#departmentsObject



43
44
45
46
47
48
# File 'lib/data-com-api/responses/company_contact_count.rb', line 43

def departments
  return @departments if requested?

  perform_request_if_not_requested!
  @departments
end

#levelsObject



36
37
38
39
40
41
# File 'lib/data-com-api/responses/company_contact_count.rb', line 36

def levels
  return @levels if requested?

  perform_request_if_not_requested!
  @levels
end

#sizeObject



22
23
24
25
26
27
# File 'lib/data-com-api/responses/company_contact_count.rb', line 22

def size
  return @size if requested?

  perform_request_if_not_requested!
  @size
end

#urlObject



29
30
31
32
33
34
# File 'lib/data-com-api/responses/company_contact_count.rb', line 29

def url
  return @url if requested?

  perform_request_if_not_requested!
  @url
end