class TripAdvisor::Translation::Localization

Attributes

language_name[RW]
locale_identifier[RW]
status[RW]
string[RW]

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/trip_advisor/translation.rb, line 23
def initialize(attributes = {})
  attributes.each { |k, v| self.send("#{k}=", v) }
end

Public Instance Methods

active?() click to toggle source
# File lib/trip_advisor/translation.rb, line 39
def active?
  status == 'Active'
end
locale_identifier=(locale_identifier) click to toggle source
# File lib/trip_advisor/translation.rb, line 27
def locale_identifier=(locale_identifier)
  @locale_identifier = (Translation.locale_identifier_to_language_codes_mapping[locale_identifier] || locale_identifier)
end
string=(string) click to toggle source
# File lib/trip_advisor/translation.rb, line 31
def string=(string)
  @string = string.strip
end
to_s() click to toggle source
# File lib/trip_advisor/translation.rb, line 35
def to_s
  string
end