Class: TripAdvisor::Translation::Localization
- Inherits:
-
Object
- Object
- TripAdvisor::Translation::Localization
- Defined in:
- lib/trip_advisor/translation.rb
Instance Attribute Summary collapse
-
#language_name ⇒ Object
Returns the value of attribute language_name.
-
#locale_identifier ⇒ Object
Returns the value of attribute locale_identifier.
-
#status ⇒ Object
Returns the value of attribute status.
-
#string ⇒ Object
Returns the value of attribute string.
Instance Method Summary collapse
- #active? ⇒ Boolean
-
#initialize(attributes = {}) ⇒ Localization
constructor
A new instance of Localization.
- #to_s ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ Localization
Returns a new instance of Localization.
23 24 25 |
# File 'lib/trip_advisor/translation.rb', line 23 def initialize(attributes = {}) attributes.each { |k, v| self.send("#{k}=", v) } end |
Instance Attribute Details
#language_name ⇒ Object
Returns the value of attribute language_name.
21 22 23 |
# File 'lib/trip_advisor/translation.rb', line 21 def language_name @language_name end |
#locale_identifier ⇒ Object
Returns the value of attribute locale_identifier.
21 22 23 |
# File 'lib/trip_advisor/translation.rb', line 21 def locale_identifier @locale_identifier end |
#status ⇒ Object
Returns the value of attribute status.
21 22 23 |
# File 'lib/trip_advisor/translation.rb', line 21 def status @status end |
#string ⇒ Object
Returns the value of attribute string.
21 22 23 |
# File 'lib/trip_advisor/translation.rb', line 21 def string @string end |
Instance Method Details
#active? ⇒ Boolean
39 40 41 |
# File 'lib/trip_advisor/translation.rb', line 39 def active? status == 'Active' end |
#to_s ⇒ Object
35 36 37 |
# File 'lib/trip_advisor/translation.rb', line 35 def to_s string end |