Sha256: 497adac8427a5d463acae1fd627e803127ac1318c7baa01f2459d7acf93bd842
Contents?: true
Size: 323 Bytes
Versions: 3
Compression:
Stored size: 323 Bytes
Contents
class UserSettingsPresenter attr_reader :resource def initialize(resource) @resource = resource end def as_json if @resource == false || @resource == true || @resource == nil { success: @resource || false } else { success: true, value: @resource } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
user_settings-0.0.3 | app/presenters/user_settings_presenter.rb |
user_settings-0.0.2 | app/presenters/user_settings_presenter.rb |
user_settings-0.0.1 | app/presenters/user_settings_presenter.rb |