# frozen_string_literal: true module GhostRb module Resources # @author Rene Hernandez # @since 0.1 class User < BaseResource attr_accessor :id, :bio, :location, :name, :slug, :visibility, :website, :posts_count def self.generate(hash) inst = super(hash) inst.posts_count = hash[:count][:posts].to_i if hash.key?(:count) inst end end end end