class RIPE::Attribute

Public Class Methods

new(client, attribute) click to toggle source
# File lib/ripe/attribute.rb, line 4
def initialize(client, attribute)
  @client = client
  @attribute = attribute
end

Public Instance Methods

name() click to toggle source
# File lib/ripe/attribute.rb, line 9
def name
  @attribute['name']
end
object()
Alias for: referenced_object
referenced_object() click to toggle source
# File lib/ripe/attribute.rb, line 21
def referenced_object
  @referenced_object ||= referenced_type ?  @client.find(self.referenced_type, self.value) : nil
end
Also aliased as: object
referenced_type() click to toggle source
# File lib/ripe/attribute.rb, line 17
def referenced_type
  @attribute['referenced-type']
end
to_api_hash() click to toggle source
# File lib/ripe/attribute.rb, line 26
def to_api_hash
  {
    'name' => @attribute['name'],
    'value' => @attribute['value']
  }
end
value() click to toggle source
# File lib/ripe/attribute.rb, line 13
def value
  @attribute['value']
end