class Appwrite::Models::Locale
Attributes
continent[R]
continent_code[R]
country[R]
country_code[R]
currency[R]
eu[R]
ip[R]
Public Class Methods
from(map:)
click to toggle source
# File lib/appwrite/models/locale.rb, line 32 def self.from(map:) Locale.new( ip: map["ip"], country_code: map["countryCode"], country: map["country"], continent_code: map["continentCode"], continent: map["continent"], eu: map["eu"], currency: map["currency"] ) end
new( ip:, country_code:, country:, continent_code:, continent:, eu:, currency: )
click to toggle source
# File lib/appwrite/models/locale.rb, line 14 def initialize( ip:, country_code:, country:, continent_code:, continent:, eu:, currency: ) @ip = ip @country_code = country_code @country = country @continent_code = continent_code @continent = continent @eu = eu @currency = currency end
Public Instance Methods
to_map()
click to toggle source
# File lib/appwrite/models/locale.rb, line 44 def to_map { "ip": @ip, "countryCode": @country_code, "country": @country, "continentCode": @continent_code, "continent": @continent, "eu": @eu, "currency": @currency } end