Class: RfcFacil::JuristicPerson

Inherits:
Object
  • Object
show all
Defined in:
lib/rfc_facil/juristic_person.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(legal_name, day, month, year) ⇒ JuristicPerson

Returns a new instance of JuristicPerson.



5
6
7
8
9
10
# File 'lib/rfc_facil/juristic_person.rb', line 5

def initialize(legal_name, day, month, year)
  @legal_name = legal_name
  @day = day
  @month = month
  @year = year
end

Instance Attribute Details

#dayObject

Returns the value of attribute day.



3
4
5
# File 'lib/rfc_facil/juristic_person.rb', line 3

def day
  @day
end

Returns the value of attribute legal_name.



3
4
5
# File 'lib/rfc_facil/juristic_person.rb', line 3

def legal_name
  @legal_name
end

#monthObject

Returns the value of attribute month.



3
4
5
# File 'lib/rfc_facil/juristic_person.rb', line 3

def month
  @month
end

#yearObject

Returns the value of attribute year.



3
4
5
# File 'lib/rfc_facil/juristic_person.rb', line 3

def year
  @year
end