Class: WebHDFS::Prueba

Inherits:
Object
  • Object
show all
Defined in:
lib/webhdfs/prueba.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(campo) ⇒ Prueba

Returns a new instance of Prueba.



7
8
9
# File 'lib/webhdfs/prueba.rb', line 7

def initialize(campo)
  self.campo = campo
end

Instance Attribute Details

#campoObject

Returns the value of attribute campo.



5
6
7
# File 'lib/webhdfs/prueba.rb', line 5

def campo
  @campo
end

Instance Method Details

#api(path) ⇒ Object



11
12
13
# File 'lib/webhdfs/prueba.rb', line 11

def api(path)
  puts WebHDFS.api_path(path)
end

#aqui(valor) ⇒ Object



20
21
22
23
24
# File 'lib/webhdfs/prueba.rb', line 20

def aqui(valor)
  puts "Aqui: #{valor}"
  valor = mas(valor)
  puts "Aqui: #{valor}"
end

#mas(valor) ⇒ Object



26
27
28
29
30
31
# File 'lib/webhdfs/prueba.rb', line 26

def mas(valor)
  valor += 1
  puts "Mas: #{valor}"

  valor
end