File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/activeresource-6.0.0/ri/ActiveResource/Base/save-i.ri
U:RDoc::AnyMethod[iI" save:ETI"ActiveResource::Base#save;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [ I"aSaves (+POST+) or \updates (+PUT+) a resource. Delegates to +create+ if the object is \new, ;TI"l+update+ if it exists. If the response to the \save includes a body, it will be assumed that this body ;TI"qis Json for the final object as it looked after the \save (which would include attributes like +created_at+ ;TI"/that weren't part of the original submit).;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading:
leveli : textI"
Examples;To:RDoc::Markup::Verbatim; [I"_my_company = Company.new(:name => 'RoleModel Software', :owner => 'Ken Auer', :size => 2)
;TI"my_company.new? # => true
;TI"7my_company.save # sends POST /companies/ (create)
;TI"
;TI" my_company.new? # => false
;TI"my_company.size = 10
;TI"6my_company.save # sends PUT /companies/1 (update);T:@format0:
@fileI" lib/active_resource/base.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@FI" Base;TcRDoc::NormalClass00