Class: Txdb::Backends::Globalize::Reader
- Inherits:
-
Object
- Object
- Txdb::Backends::Globalize::Reader
- Includes:
- Helpers
- Defined in:
- lib/txdb/backends/globalize/reader.rb
Instance Attribute Summary collapse
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(table) ⇒ Reader
constructor
A new instance of Reader.
- #read_content ⇒ Object
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
#table ⇒ Object (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_content ⇒ Object
16 17 18 |
# File 'lib/txdb/backends/globalize/reader.rb', line 16 def read_content [Txdb::TxResource.new(resource, serialized_content)] end |