Class: ActsAsIcontact::Account

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

Overview

The top-level Accounts resource from iContact. Currently only supports retrieval – and is highly targeted toward the first account, 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, #inspect, #method_missing, #new_record?, #property_names, #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

This is the one major resource that comes directly from the main path.



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

def self.base
  ActsAsIcontact.connection
end

.never_on_updateObject

Accounts can’t pass back a userName or password on updating



15
16
17
# File 'lib/acts_as_icontact/resources/account.rb', line 15

def self.never_on_update     
  ['userName','password']
end

.uri_componentObject



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

def self.uri_component
  'a'
end