Class: Reviewable::EditableFields::Field

Inherits:
Item
  • Object
show all
Defined in:
lib/reviewable/editable_fields.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, type) ⇒ Field

Returns a new instance of Field.



8
9
10
11
# File 'lib/reviewable/editable_fields.rb', line 8

def initialize(id, type)
  super(id)
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/reviewable/editable_fields.rb', line 6

def type
  @type
end

Instance Method Details

#server_actionObject



13
14
15
# File 'lib/reviewable/editable_fields.rb', line 13

def server_action
  id
end