Class: PhraseAppUpdater::PhraseAppAPI::Locale
- Inherits:
-
Object
- Object
- PhraseAppUpdater::PhraseAppAPI::Locale
- Defined in:
- lib/phraseapp_updater/phraseapp_api.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #default? ⇒ Boolean
-
#initialize(phraseapp_locale) ⇒ Locale
constructor
A new instance of Locale.
- #to_s ⇒ Object
Constructor Details
#initialize(phraseapp_locale) ⇒ Locale
Returns a new instance of Locale.
236 237 238 239 240 |
# File 'lib/phraseapp_updater/phraseapp_api.rb', line 236 def initialize(phraseapp_locale) @name = phraseapp_locale.name @id = phraseapp_locale.id @default = phraseapp_locale.default end |
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default.
235 236 237 |
# File 'lib/phraseapp_updater/phraseapp_api.rb', line 235 def default @default end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
235 236 237 |
# File 'lib/phraseapp_updater/phraseapp_api.rb', line 235 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
235 236 237 |
# File 'lib/phraseapp_updater/phraseapp_api.rb', line 235 def name @name end |
Instance Method Details
#default? ⇒ Boolean
242 243 244 |
# File 'lib/phraseapp_updater/phraseapp_api.rb', line 242 def default? default end |
#to_s ⇒ Object
246 247 248 |
# File 'lib/phraseapp_updater/phraseapp_api.rb', line 246 def to_s "#{name} : #{id}" end |