Class: Registrar::Domain

Inherits:
Object
  • Object
show all
Defined in:
lib/registrar/domain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Domain

Returns a new instance of Domain.



14
15
16
# File 'lib/registrar/domain.rb', line 14

def initialize(name)
  @name = name
end

Instance Attribute Details

#expirationObject

Returns the value of attribute expiration.



8
9
10
# File 'lib/registrar/domain.rb', line 8

def expiration
  @expiration
end

#lockableObject

Returns the value of attribute lockable.



11
12
13
# File 'lib/registrar/domain.rb', line 11

def lockable
  @lockable
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/registrar/domain.rb', line 3

def name
  @name
end

#orderObject

Returns the value of attribute order.



6
7
8
# File 'lib/registrar/domain.rb', line 6

def order
  @order
end

#real_timeObject

Returns the value of attribute real_time.



12
13
14
# File 'lib/registrar/domain.rb', line 12

def real_time
  @real_time
end

#registrantObject

Returns the value of attribute registrant.



5
6
7
# File 'lib/registrar/domain.rb', line 5

def registrant
  @registrant
end

#registration_statusObject

Returns the value of attribute registration_status.



9
10
11
# File 'lib/registrar/domain.rb', line 9

def registration_status
  @registration_status
end

Instance Method Details

#lockable?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/registrar/domain.rb', line 18

def lockable?
  !!lockable
end

#real_time?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/registrar/domain.rb', line 22

def real_time?
  !!real_time
end