Class: ProveUru::UkData
- Inherits:
-
Object
- Object
- ProveUru::UkData
- Defined in:
- lib/prove_uru/uk_data.rb
Instance Attribute Summary collapse
-
#address1 ⇒ Object
Returns the value of attribute address1.
-
#address2 ⇒ Object
Returns the value of attribute address2.
-
#address3 ⇒ Object
Returns the value of attribute address3.
-
#address4 ⇒ Object
Returns the value of attribute address4.
Instance Method Summary collapse
Instance Attribute Details
#address1 ⇒ Object
Returns the value of attribute address1.
2 3 4 |
# File 'lib/prove_uru/uk_data.rb', line 2 def address1 @address1 end |
#address2 ⇒ Object
Returns the value of attribute address2.
2 3 4 |
# File 'lib/prove_uru/uk_data.rb', line 2 def address2 @address2 end |
#address3 ⇒ Object
Returns the value of attribute address3.
2 3 4 |
# File 'lib/prove_uru/uk_data.rb', line 2 def address3 @address3 end |
#address4 ⇒ Object
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_hash ⇒ Object
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 |