Class: ActsAsIcontact::Client

Inherits:
Resource
  • Object
show all
Defined in:
lib/acts_as_icontact/resources/client.rb

Overview

The nested Client Folder resource from iContact. Currently only supports retrieval – and is highly targeted toward the first client folder, since that seems to be the dominant use case.

Class Method Summary collapse

Methods inherited from Resource

#==, all, #connection, #error, #errors, find, find_by_id, first, #id, #initialize, #method_missing, #new_record?, #save, #save!

Constructor Details

This class inherits a constructor from ActsAsIcontact::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActsAsIcontact::Resource

Class Method Details

.baseObject

Derives from the Account resource.



6
7
8
# File 'lib/acts_as_icontact/resources/client.rb', line 6

def self.base
  ActsAsIcontact.
end

.collection_nameObject



14
15
16
# File 'lib/acts_as_icontact/resources/client.rb', line 14

def self.collection_name
  'clientfolders'
end

.resource_nameObject



10
11
12
# File 'lib/acts_as_icontact/resources/client.rb', line 10

def self.resource_name
  'clientfolder'
end

.uri_componentObject



18
19
20
# File 'lib/acts_as_icontact/resources/client.rb', line 18

def self.uri_component
  'c'
end