Class: Flexite::Entry

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/flexite/entry.rb,
app/forms/flexite/entry/array_form.rb,
app/services/flexite/entry/create_service.rb,
app/services/flexite/entry/destroy_service.rb,
app/services/flexite/entry/array_create_service.rb,
app/services/flexite/entry/destroy_array_entry_service.rb

Direct Known Subclasses

ArrEntry, BoolEntry, IntEntry, StrEntry, SymEntry

Defined Under Namespace

Classes: ArrayCreateService, ArrayForm, ArrayUpdateService, CreateService, DestroyArrayEntryService, DestroyService, Form, UpdateService

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.form(attributes = {}) ⇒ Object



11
12
13
# File 'app/models/flexite/entry.rb', line 11

def self.form(attributes = {})
  Form.new(attributes)
end

.service(type) ⇒ Object



15
16
17
# File 'app/models/flexite/entry.rb', line 15

def self.service(type)
  "entry_#{type}".to_sym
end

Instance Method Details

#view_valueObject



7
8
9
# File 'app/models/flexite/entry.rb', line 7

def view_value
  value.to_s
end