Class: Expressir::Model::Declarations::Interface
- Inherits:
-
Expressir::Model::Declaration
- Object
- ModelElement
- Expressir::Model::Declaration
- Expressir::Model::Declarations::Interface
- Defined in:
- lib/expressir/model/declarations/interface.rb
Overview
Specified in ISO 10303-11:2004
-
section 11 Interface specification
Constant Summary collapse
- USE =
:USE
- REFERENCE =
:REFERENCE
Instance Attribute Summary collapse
Attributes inherited from ModelElement
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Interface
constructor
A new instance of Interface.
Methods inherited from ModelElement
#children, #children_by_id, #find, from_hash, model_attr_accessor, model_attrs, #path, #reset_children_by_id, #to_hash, #to_liquid, #to_s
Constructor Details
#initialize(options = {}) ⇒ Interface
Returns a new instance of Interface.
18 19 20 21 22 23 24 |
# File 'lib/expressir/model/declarations/interface.rb', line 18 def initialize( = {}) @kind = [:kind] @schema = [:schema] @items = [:items] || [] super end |
Instance Attribute Details
#items ⇒ Array<InterfaceItem>
12 |
# File 'lib/expressir/model/declarations/interface.rb', line 12 model_attr_accessor :items, 'Array<InterfaceItem>' |
#kind ⇒ :USE, :REFERENCE
10 |
# File 'lib/expressir/model/declarations/interface.rb', line 10 model_attr_accessor :kind, ':USE, :REFERENCE' |
#schema ⇒ Reference
11 |
# File 'lib/expressir/model/declarations/interface.rb', line 11 model_attr_accessor :schema, 'Reference' |