Class: ApiEntreprise::Resources::Fntp
- Inherits:
-
Object
- Object
- ApiEntreprise::Resources::Fntp
- Defined in:
- lib/api_entreprise/resources/fntp.rb
Instance Method Summary collapse
-
#carte_professionnelle_travaux_publics(siren, version: nil, recipient: nil, context: nil, object: nil) ⇒ Object
Carte professionnelle travaux publics Logical endpoint: /fntp/unites_legales/siren/carte_professionnelle_travaux_publics Versions available: [3] — default: 3.
-
#initialize(client) ⇒ Fntp
constructor
A new instance of Fntp.
Constructor Details
#initialize(client) ⇒ Fntp
Returns a new instance of Fntp.
9 10 11 |
# File 'lib/api_entreprise/resources/fntp.rb', line 9 def initialize(client) @client = client end |
Instance Method Details
#carte_professionnelle_travaux_publics(siren, version: nil, recipient: nil, context: nil, object: nil) ⇒ Object
Carte professionnelle travaux publics Logical endpoint: /fntp/unites_legales/siren/carte_professionnelle_travaux_publics Versions available: [3] — default: 3
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/api_entreprise/resources/fntp.rb', line 16 def carte_professionnelle_travaux_publics(siren, version: nil, recipient: nil, context: nil, object: nil) Commons::Siren.validate!(siren, parameter: :siren) path = case version || 3 when 3 "/v3/fntp/unites_legales/#{siren}/carte_professionnelle_travaux_publics" else raise ArgumentError, "version #{version.inspect} not available for /fntp/unites_legales/{siren}/carte_professionnelle_travaux_publics; supported: [3]" end @client.get(path, params: { "recipient" => recipient, "context" => context, "object" => object }.compact) end |