class RemoteResource::ApiReadOnlyMethod
Public Class Methods
new(method_name)
click to toggle source
Calls superclass method
# File lib/remote_resource/errors.rb, line 7 def initialize(method_name) @method_name = method_name super(message) end
Public Instance Methods
message()
click to toggle source
# File lib/remote_resource/errors.rb, line 12 def message <<-MESSAGE.strip_heredoc The `RemoteResource` gem creates read only methods which represent API values. `#{@method_name}` was defined using this gem and this error is raised to indicate that these attributes are read only, although you may override this behavior by defining a `#{@method_name}=` setter method on this class. MESSAGE end