Method: Megam::API#post_sshkey
- Defined in:
- lib/megam/api/sshkeys.rb
#post_sshkey(new_sshkey) ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/megam/api/sshkeys.rb', line 23 def post_sshkey(new_sshkey) @options = {:path => '/sshkeys/content', :body => Megam::JSONCompat.to_json(new_sshkey)}.merge(@options) request( :expects => 201, :method => :post, :body => @options[:body] ) end |