Class: Docusigner::Account
- Defined in:
- lib/docusigner/account.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Class Method Summary collapse
Instance Method Summary collapse
-
#envelopes(from_date, options = {}) ⇒ Object
define this manually because the index action requires a from_date.
Methods inherited from Base
act_as_user, authorization=, connection, headers, #to_json, token=
Methods included from Multipart::Resource
Instance Attribute Details
#id ⇒ Object
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, ) super(id, ).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, = {}) Docusigner::Envelope.find(:all, :params => .reverse_merge({:account_id => id, :from_date => from_date})) end |