Class: Docusigner::Account

Inherits:
Base
  • Object
show all
Defined in:
lib/docusigner/account.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

act_as_user, authorization=, connection, headers, #to_json, token=

Methods included from Multipart::Resource

#add_document, #encode

Instance Attribute Details

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/docusigner/account.rb', line 3

def id
  @id
end

Class Method Details

.find_single(id, options) ⇒ Object



21
22
23
24
25
# File 'lib/docusigner/account.rb', line 21

def self.find_single(id, options)
  super(id, options).tap do |r|
    r.id = id
  end
end

Instance Method Details

#envelopes(from_date, options = {}) ⇒ Object

define this manually because the index action requires a from_date



12
13
14
# File 'lib/docusigner/account.rb', line 12

def envelopes(from_date, options = {})
  Docusigner::Envelope.find(:all, :params => options.reverse_merge({:account_id => id, :from_date => from_date}))
end