Class: Kitsune::Kit::Adapters::DnsRecord

Inherits:
Data
  • Object
show all
Defined in:
lib/kitsune/kit/adapters/provider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



14
15
16
# File 'lib/kitsune/kit/adapters/provider.rb', line 14

def data
  @data
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



14
15
16
# File 'lib/kitsune/kit/adapters/provider.rb', line 14

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



14
15
16
# File 'lib/kitsune/kit/adapters/provider.rb', line 14

def name
  @name
end

#ttlObject (readonly)

Returns the value of attribute ttl

Returns:

  • (Object)

    the current value of ttl



14
15
16
# File 'lib/kitsune/kit/adapters/provider.rb', line 14

def ttl
  @ttl
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



14
15
16
# File 'lib/kitsune/kit/adapters/provider.rb', line 14

def type
  @type
end

#zoneObject (readonly)

Returns the value of attribute zone

Returns:

  • (Object)

    the current value of zone



14
15
16
# File 'lib/kitsune/kit/adapters/provider.rb', line 14

def zone
  @zone
end

Instance Method Details

#to_hObject



15
16
17
# File 'lib/kitsune/kit/adapters/provider.rb', line 15

def to_h
  members.to_h { |member| [member, public_send(member)] }
end