Class: ArtisanMemoryRepository::Story

Inherits:
Base
  • Object
show all
Defined in:
lib/artisan-memory-repository/models/story.rb

Instance Method Summary collapse

Methods inherited from Base

#==, _collections, _fields, #attributes, boolean, collections, data_attributes, #get, #init, #initialize, #saves?, #set, #to_param, #update_attributes

Constructor Details

This class inherits a constructor from ArtisanMemoryRepository::Base

Instance Method Details

#to_json(*args) ⇒ Object



15
16
17
# File 'lib/artisan-memory-repository/models/story.rb', line 15

def to_json(*args)
  attributes.to_json
end

#valid?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/artisan-memory-repository/models/story.rb', line 19

def valid?
  true
end