Class: ProveUru::UkData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#address1Object

Returns the value of attribute address1.



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

def address1
  @address1
end

#address2Object

Returns the value of attribute address2.



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

def address2
  @address2
end

#address3Object

Returns the value of attribute address3.



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

def address3
  @address3
end

#address4Object

Returns the value of attribute address4.



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

def address4
  @address4
end

Instance Method Details

#to_prove_hashObject



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

def to_prove_hash
  return_hash = {}
  
  return_hash = return_hash.merge!({"Address1" => self.address1.to_prove_hash}) unless self.address1.nil?
  return_hash = return_hash.merge!({"Address2" => self.address2.to_prove_hash}) unless self.address2.nil?
  return_hash = return_hash.merge!({"Address3" => self.address3.to_prove_hash}) unless self.address3.nil?
  return_hash = return_hash.merge!({"Address4" => self.address4.to_prove_hash}) unless self.address4.nil?
  
  return_hash
end