Class: Avmtrf1::Forponto::User

Inherits:
Object
  • Object
show all
Defined in:
lib/avmtrf1/forponto/user.rb,
lib/avmtrf1/forponto/user/month.rb,
lib/avmtrf1/forponto/user/balance.rb,
lib/avmtrf1/forponto/user/day_registers.rb

Defined Under Namespace

Classes: Balance, DayRegisters, Month

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, matricula, codigo) ⇒ User

Returns a new instance of User.


11
12
13
14
15
# File 'lib/avmtrf1/forponto/user.rb', line 11

def initialize(url, matricula, codigo)
  @url = url
  @matricula = matricula
  @codigo = codigo
end

Instance Attribute Details

#codigoObject (readonly)

Returns the value of attribute codigo.


9
10
11
# File 'lib/avmtrf1/forponto/user.rb', line 9

def codigo
  @codigo
end

#matriculaObject (readonly)

Returns the value of attribute matricula.


9
10
11
# File 'lib/avmtrf1/forponto/user.rb', line 9

def matricula
  @matricula
end

#urlObject (readonly)

Returns the value of attribute url.


9
10
11
# File 'lib/avmtrf1/forponto/user.rb', line 9

def url
  @url
end

Instance Method Details

#month(year, month) ⇒ Object


17
18
19
# File 'lib/avmtrf1/forponto/user.rb', line 17

def month(year, month)
  ::Avmtrf1::Forponto::User::Month.new(self, year, month)
end