Consider a compact metric space M and X = M N the set of sequences taking values in M . In this paper we prove a Ruelle's Perron Frobenius Theorem for a class of compact subshifts with Markovian structure introduced in [dSdSS14], which are defined using a continuous function A : M × M → R that determines the set of admissible sequences. In particular, this class of subshifts includes the generalized XY model on the alphabet M (see for instance [LMMS15]) and the class of finite Markov shifts when M is a finite set. Besides that, we present an explicit expression for the normalized eigenfunction of the Ruelle operator associated to its maximal eigenvalue and an extension of its corresponding Gibbs state to the bilateral approach. From these results, we are able to prove existence of equilibrium states and accumulation points at zero temperature in a special class of countable Markov shifts.