Class: ProveUru::UkAddress

Inherits:
Object
  • Object
show all
Defined in:
lib/prove_uru/uk_address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#first_year_of_residenceObject

Returns the value of attribute first_year_of_residence.



2
3
4
# File 'lib/prove_uru/uk_address.rb', line 2

def first_year_of_residence
  @first_year_of_residence
end

#fixed_formatObject

Returns the value of attribute fixed_format.



2
3
4
# File 'lib/prove_uru/uk_address.rb', line 2

def fixed_format
  @fixed_format
end

#free_formatObject

Returns the value of attribute free_format.



2
3
4
# File 'lib/prove_uru/uk_address.rb', line 2

def free_format
  @free_format
end

#last_year_of_residenceObject

Returns the value of attribute last_year_of_residence.



2
3
4
# File 'lib/prove_uru/uk_address.rb', line 2

def last_year_of_residence
  @last_year_of_residence
end

Instance Method Details

#to_prove_hashObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/prove_uru/uk_address.rb', line 4

def to_prove_hash
  return_hash = {}
  
  return_hash = return_hash.merge!({"FixedFormat" => self.fixed_format.to_prove_hash}) unless self.fixed_format.nil?
  return_hash = return_hash.merge!({"FreeFormat" => self.free_format.to_prove_hash}) unless self.free_format.nil?
  return_hash = return_hash.merge!({"FirstYearOfResidence" => self.first_year_of_residence }) unless self.first_year_of_residence.nil?
  return_hash = return_hash.merge!({"LastYearOfResidence" => self.last_year_of_residence }) unless self.last_year_of_residence.nil?
  
  return_hash
end