Class: Croatia::Invoice::Party

Inherits:
Object
  • Object
show all
Defined in:
lib/croatia/invoice/party.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ Party

Returns a new instance of Party.



15
16
17
18
19
# File 'lib/croatia/invoice/party.rb', line 15

def initialize(**options)
  options.each do |key, value|
    public_send("#{key}=", value)
  end
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



4
5
6
# File 'lib/croatia/invoice/party.rb', line 4

def address
  @address
end

#cityObject

Returns the value of attribute city.



4
5
6
# File 'lib/croatia/invoice/party.rb', line 4

def city
  @city
end

#country_codeObject

Returns the value of attribute country_code.



4
5
6
# File 'lib/croatia/invoice/party.rb', line 4

def country_code
  @country_code
end

#einvoice_idObject

Returns the value of attribute einvoice_id.



4
5
6
# File 'lib/croatia/invoice/party.rb', line 4

def einvoice_id
  @einvoice_id
end

#ibanObject

Returns the value of attribute iban.



4
5
6
# File 'lib/croatia/invoice/party.rb', line 4

def iban
  @iban
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/croatia/invoice/party.rb', line 4

def name
  @name
end

#pays_vatObject

Returns the value of attribute pays_vat.



4
5
6
# File 'lib/croatia/invoice/party.rb', line 4

def pays_vat
  @pays_vat
end

#pinObject

Returns the value of attribute pin.



4
5
6
# File 'lib/croatia/invoice/party.rb', line 4

def pin
  @pin
end

#postal_codeObject

Returns the value of attribute postal_code.



4
5
6
# File 'lib/croatia/invoice/party.rb', line 4

def postal_code
  @postal_code
end