Class: Unresponsys::ExtensionTable

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/unresponsys/extension_table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#listObject (readonly)

Returns the value of attribute list.



5
6
7
# File 'lib/unresponsys/extension_table.rb', line 5

def list
  @list
end

#nameObject (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

Returns:

  • (Boolean)


23
24
25
# File 'lib/unresponsys/extension_table.rb', line 23

def extension_table?
  true
end

#supplemental_table?Boolean

Returns:

  • (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