Class: Callme::DepMetadata::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/callme/dep_metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options) ⇒ Attribute

Returns a new instance of Attribute.



55
56
57
58
59
# File 'lib/callme/dep_metadata.rb', line 55

def initialize(name, options)
  Callme::ArgsValidator.has_key!(options, :ref)
  @name = name
  @ref  = options[:ref]
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



53
54
55
# File 'lib/callme/dep_metadata.rb', line 53

def name
  @name
end

#refObject (readonly)

Returns the value of attribute ref.



53
54
55
# File 'lib/callme/dep_metadata.rb', line 53

def ref
  @ref
end