Class: Txdb::Backends::Globalize::Reader

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/txdb/backends/globalize/reader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers

#origin_table_name, #resource_slug_for

Constructor Details

#initialize(table) ⇒ Reader

Returns a new instance of Reader.



12
13
14
# File 'lib/txdb/backends/globalize/reader.rb', line 12

def initialize(table)
  @table = table
end

Instance Attribute Details

#tableObject (readonly)

Returns the value of attribute table.



10
11
12
# File 'lib/txdb/backends/globalize/reader.rb', line 10

def table
  @table
end

Instance Method Details

#read_contentObject



16
17
18
# File 'lib/txdb/backends/globalize/reader.rb', line 16

def read_content
  [Txdb::TxResource.new(resource, serialized_content)]
end