Sha256: e3161d5cd28b8b0003a0e544cfa1ba0b084f90488df84d20aa44490abf99266c
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
require "digicert/base" module Digicert class Organization < Digicert::Base include Digicert::Actions::All include Digicert::Actions::Fetch include Digicert::Actions::Create private def resource_path "organization" end def validate(name:, address:, zip:, city:, state:, country:, telephone:, container:, organization_contact:, **attributes) required_attributes = { name: name, address: address, zip: zip, city: city, state: state, country: country, telephone: telephone, container: container, organization_contact: validate_contact(**organization_contact), } required_attributes.merge(attributes) end def validate_contact(first_name:, last_name:, email:, telephone:, **attrs) required_attributes = { first_name: first_name, last_name: last_name, email: email, telephone: telephone, } required_attributes.merge(attrs) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
digicert-1.0.0 | lib/digicert/organization.rb |