Class: ServiceContract::AbstractProtocol
- Inherits:
-
Struct
- Object
- Struct
- ServiceContract::AbstractProtocol
show all
- Defined in:
- lib/service_contract/abstract_protocol.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
2
3
4
|
# File 'lib/service_contract/abstract_protocol.rb', line 2
def name
@name
end
|
#service ⇒ Object
Returns the value of attribute service
2
3
4
|
# File 'lib/service_contract/abstract_protocol.rb', line 2
def service
@service
end
|
Instance Method Details
#endpoint(name) ⇒ Object
7
8
9
|
# File 'lib/service_contract/abstract_protocol.rb', line 7
def endpoint(name)
endpoints.detect{|endpoint| endpoint.name == name}
end
|
#endpoints ⇒ Object
3
4
5
|
# File 'lib/service_contract/abstract_protocol.rb', line 3
def endpoints
[]
end
|
#type(name) ⇒ Object
15
16
17
|
# File 'lib/service_contract/abstract_protocol.rb', line 15
def type(name)
types.detect{|type| type.name == name}
end
|
#types ⇒ Object
11
12
13
|
# File 'lib/service_contract/abstract_protocol.rb', line 11
def types
[]
end
|