Class: Bcash::Api::PersonRequest

Inherits:
BaseRequest show all
Defined in:
lib/bcash/api/request/person_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#birth_dateObject Also known as: birthDate

Returns the value of attribute birth_date.



3
4
5
# File 'lib/bcash/api/request/person_request.rb', line 3

def birth_date
  @birth_date
end

#cpfObject

Returns the value of attribute cpf.



3
4
5
# File 'lib/bcash/api/request/person_request.rb', line 3

def cpf
  @cpf
end

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/bcash/api/request/person_request.rb', line 3

def email
  @email
end

#genderObject

Returns the value of attribute gender.



3
4
5
# File 'lib/bcash/api/request/person_request.rb', line 3

def gender
  @gender
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/bcash/api/request/person_request.rb', line 3

def name
  @name
end

#rgObject

Returns the value of attribute rg.



3
4
5
# File 'lib/bcash/api/request/person_request.rb', line 3

def rg
  @rg
end

Instance Method Details

#attributesObject



9
10
11
# File 'lib/bcash/api/request/person_request.rb', line 9

def attributes
  { 'email' => email, 'gender' => gender, 'name' => name, 'cpf' => cpf, 'rg' => rg, 'birthDate' => birth_date }
end