Class: WebFunction::Attribute
- Inherits:
-
Object
- Object
- WebFunction::Attribute
- Defined in:
- lib/web_function/attribute.rb
Instance Method Summary collapse
- #docs ⇒ Object
- #flags ⇒ Object
-
#initialize(attribute) ⇒ Attribute
constructor
A new instance of Attribute.
- #name ⇒ Object
- #type ⇒ Object
- #values ⇒ Object
Constructor Details
#initialize(attribute) ⇒ Attribute
Returns a new instance of Attribute.
5 6 7 |
# File 'lib/web_function/attribute.rb', line 5 def initialize(attribute) @attribute = attribute end |
Instance Method Details
#docs ⇒ Object
25 26 27 |
# File 'lib/web_function/attribute.rb', line 25 def docs @attribute["docs"] end |
#flags ⇒ Object
21 22 23 |
# File 'lib/web_function/attribute.rb', line 21 def flags @attribute["flags"] end |
#name ⇒ Object
9 10 11 |
# File 'lib/web_function/attribute.rb', line 9 def name @attribute["name"] end |
#type ⇒ Object
13 14 15 |
# File 'lib/web_function/attribute.rb', line 13 def type @attribute["type"] end |
#values ⇒ Object
17 18 19 |
# File 'lib/web_function/attribute.rb', line 17 def values @attribute["values"] end |