Module: Etapper
- Defined in:
- lib/etapper.rb,
lib/etapper/client.rb,
lib/etapper/exceptions.rb,
lib/etapper/classes/gift.rb,
lib/etapper/classes/phone.rb,
lib/etapper/session_filter.rb,
lib/etapper/classes/account.rb,
lib/etapper/classes/contact.rb,
lib/etapper/classes/hashable.rb,
lib/etapper/classes/etap_hash.rb,
lib/etapper/classes/phone_hash.rb,
lib/etapper/classes/defined_value.rb,
lib/etapper/classes/etap_abstract.rb,
lib/etapper/classes/journal_entry.rb,
lib/etapper/api/serviceMappingRegistry.rb,
lib/etapper/classes/defined_value_hash.rb,
lib/etapper/classes/duplicate_account_search.rb,
lib/etapper/classes/journal_entry_collection.rb
Defined Under Namespace
Modules: API, Hashable Classes: Account, BadValueError, Client, ConnectionError, Contact, DefinedValue, DefinedValueHash, DuplicateAccountSearch, EtapAbstract, EtapHash, Gift, JournalEntry, JournalEntryCollection, Phone, PhoneHash, ReadOnlyError, RequiredFieldError, SessionFilter
Constant Summary collapse
- VERSION =
'0.0.1'
- ETAP_URL =
Have to declare before driver
"https://app.etapestry.com:443/v2messaging/service"
- ETAP_NS =
Namespace
"etapestryAPI/service"
- ETAPPER_DIR =
File.("~/.etapper")
Class Method Summary collapse
-
.client ⇒ Object
Returns the Etapper::Class singleton object.
-
.etapper_class(api_class) ⇒ Object
A convenience method that returns the corresponding Etapper class from an API base class; e.g., Etapper::Account from Etapper::API::Account.
Class Method Details
.client ⇒ Object
Returns the Etapper::Class singleton object.
139 140 141 |
# File 'lib/etapper/client.rb', line 139 def self.client Client.instance end |
.etapper_class(api_class) ⇒ Object
A convenience method that returns the corresponding Etapper class from an API base class; e.g., Etapper::Account from Etapper::API::Account. Uses string manipulation only, so it’s pretty dumb.
17 18 19 20 |
# File 'lib/etapper.rb', line 17 def self.etapper_class(api_class) name = api_class.to_s.rpartition('::')[2] self.const_get(name) end |