Class: CloudQuery::Field
- Inherits:
-
Object
- Object
- CloudQuery::Field
- Defined in:
- lib/cloud_query/field.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#usage ⇒ Object
Returns the value of attribute usage.
Instance Method Summary collapse
-
#initialize(name, type) ⇒ Field
constructor
A new instance of Field.
- #to_node(builder) ⇒ Object
Constructor Details
#initialize(name, type) ⇒ Field
Returns a new instance of Field.
5 6 7 |
# File 'lib/cloud_query/field.rb', line 5 def initialize(name, type) @name, @type = name, type end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/cloud_query/field.rb', line 3 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/cloud_query/field.rb', line 3 def type @type end |
#usage ⇒ Object
Returns the value of attribute usage.
3 4 5 |
# File 'lib/cloud_query/field.rb', line 3 def usage @usage end |
Instance Method Details
#to_node(builder) ⇒ Object
9 10 11 |
# File 'lib/cloud_query/field.rb', line 9 def to_node(builder) builder.field attributes end |