lib/saml/elements/contact_person.rb in libsaml-3.3.0 vs lib/saml/elements/contact_person.rb in libsaml-3.4.0

- old
+ new

@@ -14,20 +14,20 @@ OTHER = 'other' ALL = [TECHNICAL, SUPPORT, ADMINISTRATIVE, BILLING, OTHER] end - attribute :contact_type, String, :tag => "contactType" + attribute :contact_type, String, tag: "contactType" - element :company, String, :tag => "Company" - element :given_name, String, :tag => "GivenName" - element :sur_name, String, :tag => "SurName" + element :company, String, tag: "Company" + element :given_name, String, tag: "GivenName" + element :sur_name, String, tag: "SurName" - has_many :email_addresses, String, :tag => "EmailAddress" - has_many :telephone_numbers, String, :tag => "TelephoneNumber" + has_many :email_addresses, String, tag: "EmailAddress" + has_many :telephone_numbers, String, tag: "TelephoneNumber" - validates :contact_type, :inclusion => ContactTypes::ALL + validates :contact_type, inclusion: ContactTypes::ALL - validates :email_addresses, :telephone_numbers, :presence => true + validates :email_addresses, :telephone_numbers, presence: true end end end