Class: Shirinji::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/shirinji/attribute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, reference = nil, value = nil) ⇒ Attribute

Returns a new instance of Attribute.



7
8
9
10
11
# File 'lib/shirinji/attribute.rb', line 7

def initialize(name, reference = nil, value = nil)
  @name = name
  @reference = reference
  @value = value
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/shirinji/attribute.rb', line 5

def name
  @name
end

#referenceObject (readonly)

Returns the value of attribute reference.



5
6
7
# File 'lib/shirinji/attribute.rb', line 5

def reference
  @reference
end

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/shirinji/attribute.rb', line 5

def value
  @value
end