Class: Expressir::Model::Declarations::Interface

Inherits:
Expressir::Model::Declaration show all
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

#parent

Instance Method Summary collapse

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.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):



18
19
20
21
22
23
24
# File 'lib/expressir/model/declarations/interface.rb', line 18

def initialize(options = {})
  @kind = options[:kind]
  @schema = options[:schema]
  @items = options[:items] || []

  super
end

Instance Attribute Details

#itemsArray<InterfaceItem>

Returns:



12
# File 'lib/expressir/model/declarations/interface.rb', line 12

model_attr_accessor :items, 'Array<InterfaceItem>'

#kind:USE, :REFERENCE

Returns:

  • (:USE, :REFERENCE)


10
# File 'lib/expressir/model/declarations/interface.rb', line 10

model_attr_accessor :kind, ':USE, :REFERENCE'

#schemaReference

Returns:



11
# File 'lib/expressir/model/declarations/interface.rb', line 11

model_attr_accessor :schema, 'Reference'