Class: Google::Apis::DiscoveryV1::RestResource

Inherits:
Object
  • Object
show all
Defined in:
lib/google/apis/generator/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#parentObject

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_methodsObject



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_methodsObject



105
106
107
# File 'lib/google/apis/generator/model.rb', line 105

def api_methods
  Hash[(@api_methods || {}).sort]
end

#resourcesObject



109
110
111
# File 'lib/google/apis/generator/model.rb', line 109

def resources
  Hash[(@resources || {}).sort]
end