Sha256: 9b45397a65a55a6b32f1cc3db64028ce2b2a5d8c083d6da7220ae6666f65c3a2

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

module AmoCRM::Resources
  class Leads < Base
    def all
      page.items
    end

    def find
      raise 'no such method'
    end

    def set_path
      'leads/set'
    end

    def list_path
      'leads/list'
    end

    def response_key
      'leads'
    end

    def self.entity_class
      AmoCRM::Entities::Lead
    end

    def self.resource_name
      :leads
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amo_crm-0.2.2 lib/amo_crm/resources/leads.rb