Module: SmartAdapters::Util::Adapters::Base

Included in:
Csv::Default, Html::Default, Js::Default, Json::Default, Text::Default, Xml::Default
Defined in:
lib/smart_adapters/util/adapters/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#resourceObject (readonly)

Returns the value of attribute resource.



7
8
9
# File 'lib/smart_adapters/util/adapters/base.rb', line 7

def resource
  @resource
end

Instance Method Details

#failure(_resource = nil) ⇒ Object



13
14
15
# File 'lib/smart_adapters/util/adapters/base.rb', line 13

def failure(_resource = nil)
  raise SmartAdapters::Exceptions::InvalidAdapterException
end

#success(_resource = nil) ⇒ Object



9
10
11
# File 'lib/smart_adapters/util/adapters/base.rb', line 9

def success(_resource = nil)
  raise SmartAdapters::Exceptions::InvalidAdapterException
end