Class: Maestrano::Api::IdMapResource

Inherits:
BaseResource
  • Object
show all
Defined in:
app/resources/maestrano/api/id_map_resource.rb

Constant Summary

Constants inherited from BaseResource

BaseResource::API_SQL_OPERATOR_MAPPING

Instance Method Summary collapse

Methods inherited from BaseResource

all_filters, attribute_type, generate_composite_filters, tables_exists?

Instance Method Details



28
29
30
# File 'app/resources/maestrano/api/id_map_resource.rb', line 28

def 
  Maestrano::Connector::Rails::External.(@model || nil)
end

#account_linked?Boolean Also known as: has_account_linked

Returns:

  • (Boolean)


22
23
24
# File 'app/resources/maestrano/api/id_map_resource.rb', line 22

def 
  @model.oauth_uid.present?
end

#saveObject



32
33
34
35
# File 'app/resources/maestrano/api/id_map_resource.rb', line 32

def save
  @model.tenant = context[:client]
  super
end