class HttpApiTools::Model::HasManyArray

Attributes

key[R]
owner[R]

Public Class Methods

new(array, owner, key) click to toggle source
Calls superclass method
# File lib/http_api_tools/model/has_many_array.rb, line 5
def initialize(array, owner, key)

  if array.kind_of?(HasManyArray)
    array = array.target_array
  end

  super(array)

  @owner = owner
  @key = key
end

Protected Instance Methods

target_array() click to toggle source
# File lib/http_api_tools/model/has_many_array.rb, line 33
def target_array
  __getobj__
end

Private Instance Methods

notify_owner() click to toggle source
# File lib/http_api_tools/model/has_many_array.rb, line 41
def notify_owner
  owner.has_many_changed(self, key)
end