Sha256: 5cfa7861218a843cf907ec7deef7db850f81afed77ce282b86e4707e679a87b8
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 Bytes
Contents
module AmoCRM::Resources class Account < Base def current get end def get parse client.get 'accounts/current' end def self.entity_class AmoCRM::Entities::Account end def response_key 'account' end def self.resource_name :account end private def parse data self.class.entity_class.new data[response_key] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amo_crm-0.2.2 | lib/amo_crm/resources/account.rb |