Class: HelloSign::Proxy::UnclaimedDraft
- Inherits:
-
Object
- Object
- HelloSign::Proxy::UnclaimedDraft
- Defined in:
- lib/hello_sign/proxy/unclaimed_draft.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #create {|draft_parameters| ... } ⇒ Object
-
#initialize(client) ⇒ UnclaimedDraft
constructor
A new instance of UnclaimedDraft.
Constructor Details
#initialize(client) ⇒ UnclaimedDraft
Returns a new instance of UnclaimedDraft.
8 9 10 |
# File 'lib/hello_sign/proxy/unclaimed_draft.rb', line 8 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/hello_sign/proxy/unclaimed_draft.rb', line 6 def client @client end |
Instance Method Details
#create {|draft_parameters| ... } ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/hello_sign/proxy/unclaimed_draft.rb', line 12 def create yield draft_parameters client.post( '/unclaimed_draft/create', body: draft_parameters.formatted ) end |