Class: Toptranslation::Resource::Locale

Inherits:
Object
  • Object
show all
Defined in:
lib/toptranslation/resource/locale.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Locale

Returns a new instance of Locale.



5
6
7
8
# File 'lib/toptranslation/resource/locale.rb', line 5

def initialize(options = {})
  @options = options
  update_from_response(options)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/toptranslation/resource/locale.rb', line 3

def code
  @code
end

#custom_codeObject (readonly)

Returns the value of attribute custom_code.



3
4
5
# File 'lib/toptranslation/resource/locale.rb', line 3

def custom_code
  @custom_code
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/toptranslation/resource/locale.rb', line 3

def name
  @name
end