{(: rooto:"YARD::CodeObjects::RootObject:@childrenIC:&YARD::CodeObjects::CodeObjectList[o:&YARD::CodeObjects::ConstantObject: @files[[I"lib/uncharted.rb:ETi:@current_file_has_commentsF: @name: Country:@source_type: ruby:@visibility: public: @tags[:@docstringIC:YARD::Docstring" ; F: @object@: @summary0:@hash_flagF:@ref_tags[;[: @allI"; F:@namespace@: @pathI" Country; F: @linei:@signatureI"!Country = Uncharted::Country; T: @sourceI"!Country = Uncharted::Country; F: @valueI"Uncharted::Country; Fo; ; [[@ i; F; :Territory;;;;;[;IC;" ; F;@;0;F;[;[;I"; F;@;I"Territory; F;i;I"%Territory = Uncharted::Territory; T;I"%Territory = Uncharted::Territory; F; I"Uncharted::Territory; Fo:$YARD::CodeObjects::ModuleObject;IC;[o:#YARD::CodeObjects::ClassObject;IC;[o:$YARD::CodeObjects::MethodObject: @scope: instance;;;I"Uncharted::Country#alpha2; F:@parameters[; [[I"lib/uncharted/country.rb; Ti ; F; : alpha2;;;[;IC;"*Returns the value of attribute alpha2 ; F;@%;0;F;[;[;I"*Returns the value of attribute alpha2; F;@#;I"def alpha2 @alpha2 end; F;I"def alpha2; F:@docstring_extra0: @dynamicTo;$;%;&;;;I"Uncharted::Country#alpha3; F;'[; [[@*i ; F; : alpha3;;;[;IC;"*Returns the value of attribute alpha3 ; F;@2;0;F;[;[;I"*Returns the value of attribute alpha3; F;@#;I"def alpha3 @alpha3 end; F;I"def alpha3; F;)0;*To;$;%;&;;;I"Uncharted::Country#name; F;'[; [[@*i ; F; : name;;;[;IC;"(Returns the value of attribute name ; F;@>;0;F;[;[;I"(Returns the value of attribute name; F;@#;I"def name @name end; F;I" def name; F;)0;*To;$;%;&;;;I""Uncharted::Country#initialize; F;'[[" alpha20[" alpha3"nil[" name"nil; [[@*i ; F; :initialize;;;[;IC;" ; F;@J;0;F;[;[o:YARD::Tags::Tag :@tag_nameI" return; F: @textI"a new instance of Country; F; 0: @types[I" Country; F;@J;I"; F;@#;I"def initialize(alpha2, alpha3 = nil, name = nil) @alpha2 = alpha2 @alpha3 = alpha3 @name = name self.class.countries[alpha2] = self end; F;I"5def initialize(alpha2, alpha3 = nil, name = nil); F;*T:@explicitTo;$;%;&;;;I"Uncharted::Country#to_s; F;'[; [[@*i; F; : to_s;;;[;IC;" ; F;@c;0;F;[;[;I"; F;@#;I"def to_s @alpha2 end; F;I"def to_s( ); F;*T;2To;$;%: class;;;I"Uncharted::Country.count; F;'[; [[@*i; F; : count;;;[;IC;" ; F;@o;0;F;[;[;I"; F;@#;I")def self.count countries.count end; F;I"def count(.); F;*T;2To;$;%;4;;;I"Uncharted::Country.find; F;'[[" code0; [[@*i; F; : find;;;[;IC;" ; F;@{;0;F;[;[;I"; F;@#;I".def self.find(code) countries[code] end; F;I"def find(.); F;*T;2To;$;%;4;;;I"!Uncharted::Country.countries; F;'[; [[@*i; F; :countries;;;[;IC;" ; F;@;0;F;[;[;I"; F;@#;I"/def self.countries @countries ||= {} end; F;I"def countries(.); F;*T;2To;$;%;&;;;I"$Uncharted::Country#subdivisions; F;'[; [[I"lib/uncharted/territory.rb; Ti ; F; :subdivisions;;;[;IC;" ; F;@;0;F;[;[;I"; F;@#;I"0def subdivisions @subdivisions ||= {} end; F;I"def subdivisions( ); F;*T;2To;$;%;&;;;I"#Uncharted::Country#territories; F;'[; [[@i; F; :territories;;;[;IC;" ; F;@;0;F;[;[;I"; F;@#;I"9def territories subdivisions[:territory] || [] end; F;I"def territories( ); F;*T;2To;$;%;&;;;I"Uncharted::Country#states; F;'[; [[@i; F; : states;;;[;IC;" ; F;@;0;F;[;[;I"; F;@#;I"0def states subdivisions[:state] || [] end; F;I"def states( ); F;*T;2To;$;%;&;;;I"!Uncharted::Country#districts; F;'[; [[@i; F; :districts;;;[;IC;" ; F;@;0;F;[;[;I"; F;@#;I"6def districts subdivisions[:district] || [] end; F;I"def districts( ); F;*T;2To;$;%;4;;;I"$Uncharted::Country.subdivisions; F;'[; [[@i; F; ;8;;;[;IC;" ; F;@;0;F;[;[;I"; F;@#;I"7def self.subdivisions Territory.subdivisions end; F;I"def subdivisions(.); F;*T;2To;#;IC;[o;$;%;&;;;I"*Uncharted::Country::Field#deserialize; F;'[[I" alpha2; T0; [[I"&lib/uncharted/adapters/mongoid.rb; Ti; F; :deserialize;;;[;IC;" ; F;@;0;F;[;[;I"; F;@;I"Ldef deserialize(alpha2) alpha2 && Uncharted::Country.find(alpha2) end; T;I"def deserialize(alpha2); F;*T;2To;$;%;&;;;I"(Uncharted::Country::Field#serialize; F;'[[I" country; T0; [[@i; F; :serialize;;;[;IC;" ; F;@;0;F;[;[;I"; F;@;I";def serialize(country) country && country.alpha2 end; T;I"def serialize(country); F;*T;2T: @owner@:@class_mixinsIC;[;>@:@instance_mixinsIC;[o:YARD::CodeObjects::Proxy : @imethod0:@orignameI""Mongoid::Fields::Serializable; T:@orignamespace@; :Serializable;o;A ;B0;CI"Mongoid::Fields; T;D@; : Fields;o;A ;B0;C0;D0; : Mongoid;@: @obj0;H0;H0;>@:@attributesIC:SymbolHash{;4IC;J{:@symbolize_valueT;&IC;J{;KT;KT: @aliases{: @groups[; [[@i ; F; : Field;;;;;[;IC;" ; F;@;0;F;[;[;I"; F;@#;I"Uncharted::Country::Field; F:@superclasso;A ;B0;C0;D0; : Object;@;H0;*T;>@#;?IC;[;>@#;@IC;[;>@#;IIC;J{;4IC;J{;KT;&IC;J{;(IC;J{: read@%: write0;KT;+IC;J{;Q@2;R0;KT;,IC;J{;Q@>;R0;KT;KT;KT;L{;M[; [[@*i[@i [@i ; F; ;;;;;;[;IC;" ; F;@#;0;F;[;[;I"; F;@!;I"Uncharted::Country; F;Oo;A ;B0;C0;D0; ;P;@;H0;*To;#;IC;[o;$;%;&;;;I"Uncharted::Territory#abbr; F;'[; [[@i$; F; : abbr;;;[;IC;"(Returns the value of attribute abbr ; F;@;0;F;[;[;I"(Returns the value of attribute abbr; F;@;I"def abbr @abbr end; F;I" def abbr; F;)0;*To;$;%;&;;;I"Uncharted::Territory#code; F;'[; [[@i$; F; : code;;;[;IC;"(Returns the value of attribute code ; F;@$;0;F;[;[;I"(Returns the value of attribute code; F;@;I"def code @code end; F;I" def code; F;)0;*To;$;%;&;;;I"!Uncharted::Territory#country; F;'[; [[@i$; F; : country;;;[;IC;"+Returns the value of attribute country ; F;@0;0;F;[;[;I"+Returns the value of attribute country; F;@;I"def country @country end; F;I"def country; F;)0;*To;$;%;&;;;I"&Uncharted::Territory#country_code; F;'[; [[@i$; F; :country_code;;;[;IC;"0Returns the value of attribute country_code ; F;@<;0;F;[;[;I"0Returns the value of attribute country_code; F;@;I")def country_code @country_code end; F;I"def country_code; F;)0;*To;$;%;&;;;I"Uncharted::Territory#name; F;'[; [[@i$; F; ;,;;;[;IC;"(Returns the value of attribute name ; F;@H;0;F;[;[;I"(Returns the value of attribute name; F;@;I"def name @name end; F;I" def name; F;)0;*To;$;%;&;;;I""Uncharted::Territory#division; F;'[; [[@i$; F; : division;;;[;IC;",Returns the value of attribute division ; F;@T;0;F;[;[;I",Returns the value of attribute division; F;@;I"!def division @division end; F;I"def division; F;)0;*To;$;%;&;;;I"$Uncharted::Territory#initialize; F;'[[" code0[" division0[" name0; [[@i&; F; ;-;;;[;IC;" ; F;@`;0;F;[;[o;. ;/I" return; F;0I" a new instance of Territory; F; 0;1[I"Territory; F;@`;I"; F;@;I"*def initialize(code, division, name) @code = code @division = division @name = name @country_code, @abbr = code.split('-') @country = Country.find(@country_code) Territory.subdivisions[code] = self @country.subdivisions[@division] ||= [] @country.subdivisions[@division] << self end; F;I")def initialize(code, division, name); F;*T;2To;$;%;&;;;I"Uncharted::Territory#to_s; F;'[; [[@i1; F; ;3;;;[;IC;" ; F;@w;0;F;[;[;I"; F;@;I"def to_s @abbr end; F;I"def to_s( ); F;*T;2To;$;%;4;;;I"Uncharted::Territory.find; F;'[[" code0; [[@i5; F; ;6;;;[;IC;" ; F;@;0;F;[;[;I"; F;@;I"1def self.find(code) subdivisions[code] end; F;I"def find(.); F;*T;2To;$;%;4;;;I"&Uncharted::Territory.subdivisions; F;'[; [[@i9; F; ;8;;;[;IC;" ; F;@;0;F;[;[;I"; F;@;I"5def self.subdivisions @subdivisions ||= {} end; F;I"def subdivisions(.); F;*T;2To;#;IC;[o;$;%;&;;;I",Uncharted::Territory::Field#deserialize; F;'[[I" code; T0; [[@i; F; ;<;;;[;IC;" ; F;@;0;F;[;[;I"; F;@;I"Hdef deserialize(code) code && Uncharted::Territory.find(code) end; T;I"def deserialize(code); F;*T;2To;$;%;&;;;I"*Uncharted::Territory::Field#serialize; F;'[[I"territory; T0; [[@i"; F; ;=;;;[;IC;" ; F;@;0;F;[;[;I"; F;@;I"?def serialize(territory) territory && territory.code end; T;I"def serialize(territory); F;*T;2T;>@;?IC;[;>@;@IC;[o;A ;B0;CI""Mongoid::Fields::Serializable; T;D@; ;E;o;A ;B0;CI"Mongoid::Fields; T;D@; ;F;o;A ;B0;C0;D0; ;G;@;H0;H0;H0;>@;IIC;J{;4IC;J{;KT;&IC;J{;KT;KT;L{;M[; [[@i; F; ;N;;;;;[;IC;" ; F;@;0;F;[;[;I"; F;@;I" Uncharted::Territory::Field; F;Oo;A ;B0;C0;D0; ;P;@;H0;*T;>@;?IC;[;>@;@IC;[;>@;IIC;J{;4IC;J{;KT;&IC;J{ ;SIC;J{;Q@;R0;KT;TIC;J{;Q@$;R0;KT;UIC;J{;Q@0;R0;KT;VIC;J{;Q@<;R0;KT;,IC;J{;Q@H;R0;KT;WIC;J{;Q@T;R0;KT;KT;KT;L{;M[; [[@i"[@i; F; ;!;;;;;[;IC;" ; F;@;0;F;[;[;I"; F;@!;I"Uncharted::Territory; F;Oo;A ;B0;C0;D0; ;P;@;H0;*T;>@!;?IC;[;>@!;@IC;[;>@!;IIC;J{;4IC;J{;KT;&IC;J{;KT;KT;L{;M[; [ [@*i[I"lib/uncharted/data/br.rb; Ti [@i[I"$lib/uncharted/data/countries.rb; Ti [@i; F; :Uncharted;;;;;[;IC;" ; F;@!;0;F;[;[;I"; F;@;I"Uncharted; F;>@;?IC;[;>@;@IC;[;>@;IIC;J{;4IC;J{;KT;&IC;J{;KT;KT;L{;M[; [; F; ;;;;;;[;IC;" ; F;@;0;F;[;[;I"; F;0;I"; F;@;!@;X@!:Uncharted::Country@#:Uncharted::Country#alpha2@%:Uncharted::Country#alpha3@2:Uncharted::Country#name@>:"Uncharted::Country#initialize@J:Uncharted::Country#to_s@c:Uncharted::Country.count@o:Uncharted::Country.find@{:!Uncharted::Country.countries@:$Uncharted::Country#subdivisions@:#Uncharted::Country#territories@:Uncharted::Country#states@:!Uncharted::Country#districts@:$Uncharted::Country.subdivisions@:Uncharted::Territory@:Uncharted::Territory#abbr@:Uncharted::Territory#code@$:!Uncharted::Territory#country@0:&Uncharted::Territory#country_code@<:Uncharted::Territory#name@H:"Uncharted::Territory#division@T:$Uncharted::Territory#initialize@`:Uncharted::Territory#to_s@w:Uncharted::Territory.find@:&Uncharted::Territory.subdivisions@:Uncharted::Country::Field@:*Uncharted::Country::Field#deserialize@:(Uncharted::Country::Field#serialize@: Uncharted::Territory::Field@:,Uncharted::Territory::Field#deserialize@:*Uncharted::Territory::Field#serialize@