Class: HelloSign::Proxy::UnclaimedDraft

Inherits:
Object
  • Object
show all
Defined in:
lib/hello_sign/proxy/unclaimed_draft.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject (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

Yields:

  • (draft_parameters)


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