diff --git a/lib/se/api/types/tag.rb b/lib/se/api/types/tag.rb index 3d29446..a42bb1e 100644 --- a/lib/se/api/types/tag.rb +++ b/lib/se/api/types/tag.rb @@ -5,7 +5,7 @@ class Tag def initialize(item_json) @json = Hash(item_json) - @count = @json['count'] + @count = @json['count'].to_i @synonyms = Array(@json['synonyms']) @name = @json['name'] end