Method: ActionNetworkRest::Petitions#initialize

Defined in:
lib/action_network_rest/petitions.rb

#initialize(petition_id = nil, client:) ⇒ Petitions

Without a petition_id, this class is used for Petition creation/update endpoints. With a petition_id, this class is used to initialise the Signatures class, like client.petitions(123).signatures



10
11
12
# File 'lib/action_network_rest/petitions.rb', line 10

def initialize(petition_id = nil, client:)
  super(client: client, petition_id: petition_id)
end