Class: Google::Apis::DiscoveryV1::RestResource
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryV1::RestResource
- Defined in:
- lib/google/apis/generator/model.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
103 104 105 |
# File 'lib/google/apis/generator/model.rb', line 103 def parent @parent end |
Instance Method Details
#all_methods ⇒ Object
113 114 115 116 117 118 |
# File 'lib/google/apis/generator/model.rb', line 113 def all_methods m = [] m << api_methods.values unless api_methods.nil? m << resources.map { |_k, r| r.all_methods } unless resources.nil? m.flatten end |
#api_methods ⇒ Object
105 106 107 |
# File 'lib/google/apis/generator/model.rb', line 105 def api_methods Hash[(@api_methods || {}).sort] end |
#resources ⇒ Object
109 110 111 |
# File 'lib/google/apis/generator/model.rb', line 109 def resources Hash[(@resources || {}).sort] end |