Class: Dnsimple::Struct::Zone

Inherits:
Base
  • Object
show all
Defined in:
lib/dnsimple/struct/zone.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Dnsimple::Struct::Base

Instance Attribute Details

#account_idInteger

Returns The associated account ID.

Returns:

  • (Integer)

    The associated account ID.



11
12
13
# File 'lib/dnsimple/struct/zone.rb', line 11

def 
  @account_id
end

#activeBoolean

Returns True if DNS services are active for the zone. False when DNS services are disabled and DNS records will not be resolved.

Returns:

  • (Boolean)

    True if DNS services are active for the zone. False when DNS services are disabled and DNS records will not be resolved



26
27
28
# File 'lib/dnsimple/struct/zone.rb', line 26

def active
  @active
end

#created_atString

Returns When the zone was created in DNSimple.

Returns:

  • (String)

    When the zone was created in DNSimple.



29
30
31
# File 'lib/dnsimple/struct/zone.rb', line 29

def created_at
  @created_at
end

#idInteger

Returns The zone ID in DNSimple.

Returns:

  • (Integer)

    The zone ID in DNSimple.



8
9
10
# File 'lib/dnsimple/struct/zone.rb', line 8

def id
  @id
end

#last_transferred_atString

Returns When the zone was last transferred from another provider.

Returns:

  • (String)

    When the zone was last transferred from another provider.



23
24
25
# File 'lib/dnsimple/struct/zone.rb', line 23

def last_transferred_at
  @last_transferred_at
end

#nameString

Returns The zone name.

Returns:

  • (String)

    The zone name.



14
15
16
# File 'lib/dnsimple/struct/zone.rb', line 14

def name
  @name
end

#reverseBoolean

Returns True if the zone is a reverse zone.

Returns:

  • (Boolean)

    True if the zone is a reverse zone.



17
18
19
# File 'lib/dnsimple/struct/zone.rb', line 17

def reverse
  @reverse
end

#secondaryBoolean

Returns True if the zone is a secondary zone.

Returns:

  • (Boolean)

    True if the zone is a secondary zone.



20
21
22
# File 'lib/dnsimple/struct/zone.rb', line 20

def secondary
  @secondary
end

#updated_atString

Returns When the zone was last updated in DNSimple.

Returns:

  • (String)

    When the zone was last updated in DNSimple.



32
33
34
# File 'lib/dnsimple/struct/zone.rb', line 32

def updated_at
  @updated_at
end