Class: GeoCerts::Order::Contact

Inherits:
Object
  • Object
show all
Defined in:
lib/geo_certs/order/contact.rb

Overview

Used for setting or retrieving the Contact information associated with a GeoCerts::Order.

Direct Known Subclasses

Administrator, ExtendedValidationApprover

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Contact) initialize(attributes = {})

A new instance of Contact



17
18
19
20
21
# File 'lib/geo_certs/order/contact.rb', line 17

def initialize(attributes = {})
  attributes.each_pair do |name, value|
    send("#{name}=", value) if respond_to?(name)
  end
end

Instance Attribute Details

- (Object) email

Returns the value of attribute email



10
11
12
# File 'lib/geo_certs/order/contact.rb', line 10

def email
  @email
end

- (Object) first_name

Returns the value of attribute first_name



10
11
12
# File 'lib/geo_certs/order/contact.rb', line 10

def first_name
  @first_name
end

- (Object) last_name

Returns the value of attribute last_name



10
11
12
# File 'lib/geo_certs/order/contact.rb', line 10

def last_name
  @last_name
end

- (Object) phone

Returns the value of attribute phone



10
11
12
# File 'lib/geo_certs/order/contact.rb', line 10

def phone
  @phone
end

- (Object) title

Returns the value of attribute title



10
11
12
# File 'lib/geo_certs/order/contact.rb', line 10

def title
  @title
end

Instance Method Details

- (Object) to_geocerts_hash

:nodoc:

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/geo_certs/order/contact.rb', line 23

def to_geocerts_hash #:nodoc:
  raise(NotImplementedError)
end