Module: SendleAPI::NotSaveable
- Defined in:
- lib/sendle_api/not_saveable.rb
Class Method Summary collapse
Instance Method Summary collapse
- #save ⇒ Object
- #update ⇒ Object
- #update_attribute(**args) ⇒ Object
- #update_attributes(**args) ⇒ Object
Class Method Details
.create(**args) ⇒ Object
3 4 5 |
# File 'lib/sendle_api/not_saveable.rb', line 3 def self.create(**args) raise NotImplementedError, "This class is a non-writable resource." end |
Instance Method Details
#save ⇒ Object
7 8 9 |
# File 'lib/sendle_api/not_saveable.rb', line 7 def save raise NotImplementedError, "This object is a non-writable resource." end |
#update ⇒ Object
11 12 13 |
# File 'lib/sendle_api/not_saveable.rb', line 11 def update save end |
#update_attribute(**args) ⇒ Object
15 16 17 |
# File 'lib/sendle_api/not_saveable.rb', line 15 def update_attribute(**args) save end |
#update_attributes(**args) ⇒ Object
19 20 21 |
# File 'lib/sendle_api/not_saveable.rb', line 19 def update_attributes(**args) save end |