Class: Membro

Inherits:
Object
  • Object
show all
Defined in:
lib/cnpq_ws/membro.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = []) ⇒ Membro

Returns a new instance of Membro.



4
5
6
7
8
9
10
# File 'lib/cnpq_ws/membro.rb', line 4

def initialize(options = [])
	@nome_completo = options[:nome_completo]
	@nome_para_citacao = options[:nome_para_citacao]
	@ordem_de_integracao = options[:ordem_de_integracao]
	@flag_responsavel = options[:flag_responsavel]
	@nro_id_cnpq = options[:nro_id_cnpq]
end

Instance Attribute Details

#flag_responsavelObject

Returns the value of attribute flag_responsavel.



2
3
4
# File 'lib/cnpq_ws/membro.rb', line 2

def flag_responsavel
  @flag_responsavel
end

#nome_completoObject

Returns the value of attribute nome_completo.



2
3
4
# File 'lib/cnpq_ws/membro.rb', line 2

def nome_completo
  @nome_completo
end

#nome_para_citacaoObject

Returns the value of attribute nome_para_citacao.



2
3
4
# File 'lib/cnpq_ws/membro.rb', line 2

def nome_para_citacao
  @nome_para_citacao
end

#nro_id_cnpqObject

Returns the value of attribute nro_id_cnpq.



2
3
4
# File 'lib/cnpq_ws/membro.rb', line 2

def nro_id_cnpq
  @nro_id_cnpq
end

#ordem_de_integracaoObject

Returns the value of attribute ordem_de_integracao.



2
3
4
# File 'lib/cnpq_ws/membro.rb', line 2

def ordem_de_integracao
  @ordem_de_integracao
end

Instance Method Details

#responsavel?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/cnpq_ws/membro.rb', line 12

def responsavel?
	self.flag_responsavel == 'SIM'
end