module Mavenlink class ExternalReference < Model def save if valid? reload(create_or_update(attributes_for_create_or_update)) true else false end end private def create_or_update(attributes) request.perform do client.post("external_references/create_or_update", { external_reference: attributes}) end end def attributes_for_create_or_update specification_attributes("create_or_update_attributes") end end end