Class: Unresponsys::ExtensionTable
- Extended by:
- Forwardable
- Defined in:
- lib/unresponsys/extension_table.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
readonly
Returns the value of attribute list.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #extension_table? ⇒ Boolean
-
#initialize(member, table_name) ⇒ ExtensionTable
constructor
A new instance of ExtensionTable.
- #supplemental_table? ⇒ Boolean
- #update(fields = {}) ⇒ Object
Constructor Details
#initialize(member, table_name) ⇒ ExtensionTable
Returns a new instance of ExtensionTable.
7 8 9 10 11 |
# File 'lib/unresponsys/extension_table.rb', line 7 def initialize(member, table_name) @member = member @list = member.list @name = table_name end |
Instance Attribute Details
#list ⇒ Object (readonly)
Returns the value of attribute list.
5 6 7 |
# File 'lib/unresponsys/extension_table.rb', line 5 def list @list end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/unresponsys/extension_table.rb', line 5 def name @name end |
Instance Method Details
#extension_table? ⇒ Boolean
23 24 25 |
# File 'lib/unresponsys/extension_table.rb', line 23 def extension_table? true end |
#supplemental_table? ⇒ Boolean
19 20 21 |
# File 'lib/unresponsys/extension_table.rb', line 19 def supplemental_table? false end |
#update(fields = {}) ⇒ Object
13 14 15 16 17 |
# File 'lib/unresponsys/extension_table.rb', line 13 def update(fields = {}) row = Unresponsys::Row.new(self, { 'RIID_' => @member.riid }) fields.each_pair { |field, value| row.send("#{field}=", value) } row.save end |