Class: HaveAPI::GoClient::Metadata::Type
- Inherits:
-
Object
- Object
- HaveAPI::GoClient::Metadata::Type
- Defined in:
- lib/haveapi/go_client/metadata.rb
Instance Attribute Summary collapse
- #input ⇒ InputOutput? readonly
- #output ⇒ InputOutput? readonly
Instance Method Summary collapse
-
#initialize(action, type, desc) ⇒ Type
constructor
A new instance of Type.
- #resolve_associations ⇒ Object
Constructor Details
#initialize(action, type, desc) ⇒ Type
Returns a new instance of Type.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/haveapi/go_client/metadata.rb', line 10 def initialize(action, type, desc) @input = desc[:input] && InputOutput.new( action, :"#{type}_meta", :input, desc[:input], prefix: "Meta#{type.to_s.capitalize}" ) @output = desc[:output] && InputOutput.new( action, :"#{type}_meta", :output, desc[:output], prefix: "Meta#{type.to_s.capitalize}" ) end |
Instance Attribute Details
#input ⇒ InputOutput? (readonly)
5 6 7 |
# File 'lib/haveapi/go_client/metadata.rb', line 5 def input @input end |
#output ⇒ InputOutput? (readonly)
8 9 10 |
# File 'lib/haveapi/go_client/metadata.rb', line 8 def output @output end |
Instance Method Details
#resolve_associations ⇒ Object
27 28 29 30 |
# File 'lib/haveapi/go_client/metadata.rb', line 27 def resolve_associations input && input.resolve_associations output && output.resolve_associations end |