Method: OldApiResource::Base.format=
- Defined in:
- lib/old_api_resource/base.rb
.format=(mime_type_or_format) ⇒ Object
105 106 107 108 109 |
# File 'lib/old_api_resource/base.rb', line 105 def format=(mime_type_or_format) format = mime_type_or_format.is_a?(Symbol) ? OldApiResource::Formats[mime_type_or_format] : mime_type_or_format write_inheritable_attribute(:format, format) self.connection.format = format if self.site end |