Sha256: bfac28ae2fb6ad0ef81e539fab8a3f602bce27e04cc994d9868d617af0afd5b1
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-0.1.1 | lib/digicert/organization.rb |