class Oneview::Api::Emails
Public Instance Methods
create(data)
click to toggle source
# File lib/oneview/api/emails.rb, line 8 def create(data) return parse_response(self.class.post("/", body: build_body(data), headers: header)) if data.is_a?(Hash) return parse_response(self.class.post("/", body: build_body(data.as_parameter), headers: header)) if data.is_a?(Oneview::Entity::Email) raise ArgumentError end
Also aliased as: new
Private Instance Methods
build_body(parameters)
click to toggle source
Calls superclass method
# File lib/oneview/api/emails.rb, line 18 def build_body(parameters) super(parameters) end