Class: Toptranslation::Resource::Locale
- Inherits:
-
Object
- Object
- Toptranslation::Resource::Locale
- Defined in:
- lib/toptranslation/resource/locale.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#custom_code ⇒ Object
readonly
Returns the value of attribute custom_code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Locale
constructor
A new instance of Locale.
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( = {}) = update_from_response() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/toptranslation/resource/locale.rb', line 3 def code @code end |
#custom_code ⇒ Object (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 |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/toptranslation/resource/locale.rb', line 3 def name @name end |