Class: DataActive::Attribute

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, known = true) ⇒ Attribute

Returns a new instance of Attribute.



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

def initialize(name, known = true)
  @name = name
  @known = known
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



4
5
6
# File 'lib/data_active/attribute.rb', line 4

def content
  @content
end

#knownObject (readonly)

Returns the value of attribute known.



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

def known
  @known
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/data_active/attribute.rb', line 3

def name
  @name
end