Class: Translate::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/translate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Item

Returns a new instance of Item.



174
175
176
177
178
# File 'lib/translate.rb', line 174

def initialize(attributes = {})
	for k in attributes.keys
		self.send("#{k}=", attributes[k]) if self.respond_to?(k)
	end
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



172
173
174
# File 'lib/translate.rb', line 172

def description
  @description
end

#new_lineObject

Returns the value of attribute new_line.



172
173
174
# File 'lib/translate.rb', line 172

def new_line
  @new_line
end

#translationObject

Returns the value of attribute translation.



172
173
174
# File 'lib/translate.rb', line 172

def translation
  @translation
end