Class: Artk::Component
- Defined in:
- app/models/artk/component.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.primary_key ⇒ Object
12 13 14 |
# File 'app/models/artk/component.rb', line 12 def self.primary_key "resourceComponentId" end |
.table_name ⇒ Object
8 9 10 |
# File 'app/models/artk/component.rb', line 8 def self.table_name "ResourcesComponents" end |
Instance Method Details
#has_child? ⇒ Boolean
16 17 18 |
# File 'app/models/artk/component.rb', line 16 def has_child? self.sub_components.count > 0 ? true : false end |
#pid_and_title ⇒ Object
20 21 22 |
# File 'app/models/artk/component.rb', line 20 def pid_and_title { :pid => self.persistentId, :title => self.title } end |