Class: GandiV5::Domain::Contact
- Inherits:
-
Object
- Object
- GandiV5::Domain::Contact
- Includes:
- GandiV5::Data
- Defined in:
- lib/gandi_v5/domain/contact.rb
Overview
Information for a single contact for a domain.
Constant Summary collapse
- TYPES =
{ person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze
- REACHABILITIES =
%i[pending done failed deleted none].freeze
- VALIDATIONS =
%i[pending done failed deleted none].freeze
Instance Attribute Summary collapse
-
#address ⇒ String
readonly
..
- #brand_number ⇒ nil, String readonly
- #city ⇒ nil, String readonly
-
#country ⇒ String
readonly
..
- #data_obfuscated ⇒ nil, Boolean readonly
-
#email ⇒ String
readonly
..
- #extra_parameters ⇒ nil, Hash readonly
-
#family ⇒ String
readonly
..
- #fax ⇒ nil, String readonly
-
#given ⇒ String
readonly
..
- #jo_announce_number ⇒ nil, String readonly
- #jo_announce_page ⇒ nil, String readonly
- #jo_declaration_page ⇒ nil, String readonly
- #jo_publication_date ⇒ nil, String readonly
- #mail_obfuscated ⇒ nil, Boolean readonly
- #mobile ⇒ nil, String readonly
-
#organisation_name ⇒ nil, String
readonly
The legal name of the company, association, or public body if the contact type is not :person.
- #phone ⇒ nil, String readonly
- #reachability ⇒ nil, ... readonly
- #sharing_uuid ⇒ nil, String readonly
- #siren ⇒ nil, String readonly
- #state ⇒ nil, String readonly
- #type ⇒ :person, ... readonly
- #validation ⇒ nil, ... readonly
- #zip ⇒ nil, String readonly
Instance Method Summary collapse
-
#name ⇒ String
Get the name for this contact.
-
#to_s ⇒ String
Containing type and name.
Methods included from GandiV5::Data
#from_gandi, included, #initialize, #to_gandi, #to_h, #values_at
Instance Attribute Details
#address ⇒ String (readonly)
Returns .
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#brand_number ⇒ nil, String (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#city ⇒ nil, String (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#country ⇒ String (readonly)
Returns .
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#data_obfuscated ⇒ nil, Boolean (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#email ⇒ String (readonly)
Returns .
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#extra_parameters ⇒ nil, Hash (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#family ⇒ String (readonly)
Returns .
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#fax ⇒ nil, String (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#given ⇒ String (readonly)
Returns .
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#jo_announce_number ⇒ nil, String (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#jo_announce_page ⇒ nil, String (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#jo_declaration_page ⇒ nil, String (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#jo_publication_date ⇒ nil, String (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#mail_obfuscated ⇒ nil, Boolean (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#mobile ⇒ nil, String (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#organisation_name ⇒ nil, String (readonly)
Returns the legal name of the company, association, or public body if the contact type is not :person.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#phone ⇒ nil, String (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#reachability ⇒ nil, ... (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#sharing_uuid ⇒ nil, String (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#siren ⇒ nil, String (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#state ⇒ nil, String (readonly)
Returns @see docs.gandi.net/en/rest_api/domain_api/contacts_api.html.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#type ⇒ :person, ... (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#validation ⇒ nil, ... (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
#zip ⇒ nil, String (readonly)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/gandi_v5/domain/contact.rb', line 58 class Contact include GandiV5::Data TYPES = { person: 'Person', company: 'Company', association: 'Association', 'public body': 'Public Body', reseller: 'Reseller' }.freeze REACHABILITIES = %i[pending done failed deleted none].freeze VALIDATIONS = %i[pending done failed deleted none].freeze members :country, :email, :family, :given, :brand_number, :city, :data_obfuscated, :extra_parameters, :fax, :jo_announce_number, :jo_announce_page, :jo_declaration_page, :jo_publication_date, :mail_obfuscated, :mobile, :phone, :siren, :state, :zip member :organisation_name, gandi_key: 'orgname' member :address, gandi_key: 'streetaddr' member :sharing_uuid, gandi_key: 'sharing_id' member( :type, converter: GandiV5::Data::Converter.new( from_gandi: ->(type) { TYPES.keys[type] }, to_gandi: ->(type) { TYPES.keys.index(type) } ) ) member :reachability, converter: GandiV5::Data::Converter::Symbol member :validation, converter: GandiV5::Data::Converter::Symbol # Get the name for this contact. # @return [String] e.g. "John Smith" or "Some Company LTD." def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end # @return [String] Containing type and name. def to_s "#{TYPES[type]}\t#{name}" end end |
Instance Method Details
#name ⇒ String
Get the name for this contact.
92 93 94 |
# File 'lib/gandi_v5/domain/contact.rb', line 92 def name type.eql?(:person) ? "#{given} #{family}" : organisation_name end |
#to_s ⇒ String
Returns Containing type and name.
97 98 99 |
# File 'lib/gandi_v5/domain/contact.rb', line 97 def to_s "#{TYPES[type]}\t#{name}" end |